0 votes
in Angular by

What is a bootstrapping module?

1 Answer

0 votes
by
Every application has at least one Angular module, the root module that you bootstrap to launch the application is called as bootstrapping module. It is commonly known as AppModule. The default structure of AppModule generated by AngularCLI would be as follows:

    import { BrowserModule } from '@angular/platform-browser';

    import { NgModule } from '@angular/core';

    import { FormsModule } from '@angular/forms';

    import { HttpClientModule } from '@angular/common/http';

    import { AppComponent } from './app.component';

    /* the AppModule class with the @NgModule decorator */

    @NgModule({

      declarations: [

        AppComponent

      ],

      imports: [

        BrowserModule,

        FormsModule,

        HttpClientModule

      ],

      providers: [],

      bootstrap: [AppComponent]

    })

    export class AppModule { }
...