What are Modules in Angularjs 2.0?
Module in Angularjs 2:
Both Angular 1.x and 2.0 apps are modular. However, inAngular2.0 NgModules has been introduced as its modularity system. Every Angular2.0 must have one module which acts as the root module and conventionally named asAppModule. If the project has been created using angular-cli,_AppModule_is created in file src/app/app.module.ts.
However, there can be more than one module in a single Angular2.0 app.
_@NgModule_decorators pass a metadata, with properties such as declaration, imports, providers, export and bootstrap in order to create the module class
.