What is an Angular module, and why is it important?
Short answer: An Angular Module (NgModule) is a container to group related components, directives, pipes, and services. It organizes an Angular app into cohesive blocks of functionality. Helps with code organization, compilation, dependency injection, and lazy loading. Every Angular app has at least one root module (AppModule).
Real-world example (ShopNest)
ShopNest admin can be built in Angular with modules/components, services for API calls, and reactive forms for product edit.
Say this in the interview
- Define — one clear sentence (the short answer above).
- Example — relate it to a project like ShopNest or your real work.
- Trade-off — when you would not use it.
Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png