Modules are used in Angular Js to put logical boundaries in your application. Hence, instead of coding everything into one application, you can instead build everything into separate modules to separate the functionality of your application. Angular Module contains multiple components to separate the functionality of application.
app.module.ts:
It is Bootstrap loading for our Application.
Example:
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { AppService } from './app.service';
@NgModule ({
imports: [ BrowserModule ],
declarations: [ AppComponent ],
providers: [AppService],
bootstrap: [ AppComponent ]
})
export class AppModule { }