Skip to content

Instantly share code, notes, and snippets.

@corespider
Created February 22, 2022 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save corespider/fc8960f978ecf32ef8773c87a2bc769f to your computer and use it in GitHub Desktop.
Save corespider/fc8960f978ecf32ef8773c87a2bc769f to your computer and use it in GitHub Desktop.
How many types of modules present in Angular
// 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