36 lines
995 B
TypeScript
36 lines
995 B
TypeScript
// #docregion
|
|
import { NgModule } from '@angular/core';
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
import { FormsModule } from '@angular/forms';
|
|
|
|
import { AppComponent } from './app.component';
|
|
import { DashboardComponent } from './dashboard.component';
|
|
import { HeroDetailComponent } from './hero-detail.component';
|
|
import { HeroesComponent } from './heroes.component';
|
|
import { HeroService } from './hero.service';
|
|
|
|
// #docregion routing-module
|
|
import { AppRoutingModule } from './app-routing.module';
|
|
|
|
@NgModule({
|
|
imports: [
|
|
BrowserModule,
|
|
FormsModule,
|
|
AppRoutingModule
|
|
],
|
|
// #enddocregion routing-module
|
|
// #docregion dashboard
|
|
declarations: [
|
|
AppComponent,
|
|
DashboardComponent,
|
|
HeroDetailComponent,
|
|
HeroesComponent
|
|
],
|
|
// #enddocregion dashboard
|
|
providers: [ HeroService ],
|
|
bootstrap: [ AppComponent ]
|
|
// #docregion routing-module
|
|
})
|
|
export class AppModule { }
|
|
// #enddocregion routing-module
|