20 lines
550 B
TypeScript
20 lines
550 B
TypeScript
// #docregion
|
|
import { NgModule } from '@angular/core';
|
|
import { FormsModule } from '@angular/forms';
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
|
|
import { AppComponent } from './app.component';
|
|
import { heroSwitchComponents } from './hero-switch.components';
|
|
import { UnlessDirective } from './unless.directive';
|
|
|
|
@NgModule({
|
|
imports: [ BrowserModule, FormsModule ],
|
|
declarations: [
|
|
AppComponent,
|
|
heroSwitchComponents,
|
|
UnlessDirective
|
|
],
|
|
bootstrap: [ AppComponent ]
|
|
})
|
|
export class AppModule { }
|