What is NgModules in Angular? How to create a module in Angular
by
girjesh
·
September 4, 2019
What is NgModules in Angular? How to create a module in Angular
Introduction to modules:
- NgModules are containers for a cohesive block of code dedicated to an application domain, a workflow, or a closely related set of capabilities
- NgModules contain components, service providers, and other code files whose scope is defined by the containing NgModule. They can import functionality that is exported from other NgModules, and export selected functionality for use by other NgModules.
- Every Angular app has at least one NgModule class, the root module, which is conventionally named AppModule and resides in a file named app.module.ts. You launch your app by bootstrapping the root NgModule