Angular module
An Angular module is an NgModule-based application unit that groups and configures declarations, imports, providers, and exports.
Pro Angular 16
A feature module is an Angular module that groups the components, services, and dependencies associated with a particular application feature.
- How it is used
- Groups related functionality into manageable units while the root module configures the application as a whole.
- How deep it goes
- Works through service, utility, component, and on-demand modules, including decorator properties, exports, root imports, and a provider-scope pitfall.
- Examples
- Uses a service-only data-model module, a shared utility module, a component module, and an on-demand administration module.
- What you can do after
- Build it from scratch by grouping related features, registering dependencies and services, exposing selected components, and importing the module where needed.
Modern Angular
An NgModule is an Angular mechanism for grouping declarations, imports, providers, and exports into a module-based application unit.
- How it is used
- Organizes declarations, imports, providers, exports, and bootstrap in legacy module-based Angular applications.
- How deep it goes
- Explains NgModule wiring and dependency indirection, then gives manual, SCAM-assisted, and schematic migration procedures.
- Examples
- Uses AppModule bootstrap code and an HRMS employee-list and employee-tile feature module.
- What you can do after
- Operate/configure an incremental migration from NgModules to standalone APIs, including the Angular v16 schematic workflow.
Related concepts
- modulecontrasts with · A module is a distinct, bounded software unit that groups related code or functionality and provides an organizational or interaction boundary within a larger system.
- lazy initializationused by · Lazy initialization is a technique that postpones creating, retrieving, computing, or loading a value or resource until it is needed.
- root moduleused by · A root module is the initial or top-level module that serves as an application's entry point and organizes its dependencies and components.
- providers arrayhas part · A providers array is Angular metadata that lists dependency-injection providers for an NgModule, component, or application configuration.
- importProvidersFromused by · importProvidersFrom is an Angular function that converts providers from NgModules or other provider sources into application or environment providers.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

