Created
February 22, 2022 15:57
-
-
Save corespider/fc8960f978ecf32ef8773c87a2bc769f to your computer and use it in GitHub Desktop.
How many types of modules present in Angular
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// feature module example | |
import { NgModule } from '@angular/core'; | |
import { SharedModule } from '../shared/SharedModule'; | |
import { HomeComponent } from './Home/Home.component'; | |
import { ProjectComponent } from './project/project.component'; | |
@NgModule({ | |
imports: [ | |
NgModule, | |
SharedModule | |
], | |
declarations: [ HomeComponent, ProjectComponent ] | |
}) | |
export class HomeModule { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment