NgModules
NgModules
NgModules help organize an application into cohesive blocks of functionality.
An NgModule is a class adorned with the @NgModule decorator function. @NgModule
takes a metadata object that tells Angular how to compile and run module code. It identifies the module's own components, directives, and pipes, making some of them public so external components can use them. @NgModule
may add service providers to the application dependency injectors. And there are many more options covered here.
Before reading this page, read the The Root Module page, which introduces NgModules and the essentials of creating and maintaining a single root AppModule
for the entire application.
This page covers NgModules in greater depth.
<