5 min read
•Question 3 of 46easyNgModules
Organizing Angular applications with modules.
What are NgModules?
NgModules are containers that group related components, directives, pipes, and services. Every Angular app has at least one module - the root module (AppModule).
Module Metadata
- declarations: Components, directives, pipes
- imports: Other modules needed
- providers: Services for DI
- exports: Public API of module
- bootstrap: Root component (only in root module)