A module is a logical unit of the application that combines linked components, directives, pipelines, and services. By enclosing features into coherent chunks,

It helps to structure and run the program.

@NgModule({
   declarations: [AppComponent],
   imports: [BrowserModule],
   providers: [],
   bootstrap: [AppComponent]
})
export class AppModule { }


Related Question