Problem Statement
What is a module in Angular and what does @NgModule do?
Explanation
A module groups building blocks—components, directives, pipes, and services—into a cohesive unit. `@NgModule` declares what belongs to the module, imports other modules it needs, and can bootstrap a root component. Feature modules help split apps for organization and lazy loading.
Code Solution
SolutionRead Only
@NgModule({
declarations: [AppComponent],
imports: [BrowserModule],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {}