Problem Statement
What is a module in Angular?
Explanation
A module groups related components, directives, pipes, and services into a functional block. It’s defined using the @NgModule decorator and helps organize code for maintainability. Every Angular app has at least one root module (AppModule). Modules can be imported into others for feature segregation and lazy loading.
Code Solution
SolutionRead Only
@NgModule({ declarations: [AppComponent], imports: [BrowserModule], bootstrap: [AppComponent] }) export class AppModule {}