Module

NgModule is one of the first basic structures you meet when coding an app with Angular, but it’s also the most complex, because of different scopes.

Every Angular app has a root module, named AppModule, which provides the mechanism that launches the application.

NgModules can import functionality from other NgModules, and allow their own functionality to be exported and used by other NgModules.

NgModules are shareable (independent) units in Angular apps. We have different types of modules:

  • system (Router, etc)
  • other modules
  • custom modules
  • third party modules (ngrx, rxjs, etc).

#modules #typescript #angular #components #javascript

Differences Between Component and Module in Angular
2.70 GEEK