Complete the code to import the NgModule decorator from Angular core.
import { [1] } from '@angular/core';
The NgModule decorator is imported from @angular/core to define Angular modules.
Complete the code to declare a module class named AppModule.
@NgModule({})
export class [1] {}The main Angular module is conventionally named AppModule.
Fix the error in the NgModule metadata by completing the imports array with BrowserModule.
@NgModule({
imports: [[1]]
})
export class AppModule {}The BrowserModule must be imported in the root module to enable Angular app running in a browser.
Fill both blanks to declare a component in declarations and bootstrap arrays.
@NgModule({
declarations: [[1]],
bootstrap: [[2]]
})
export class AppModule {}The AppComponent is declared and bootstrapped in the root module to start the app.
Fill all three blanks to complete the NgModule metadata with imports, declarations, and bootstrap arrays.
@NgModule({
imports: [[1]],
declarations: [[2]],
bootstrap: [[3]]
})
export class AppModule {}The root module imports BrowserModule, declares AppComponent, and bootstraps AppComponent.