
This commit updates the docs examples to be compatible with the `import-spacing` tslint rule. This is in preparation of updating the docs examples `tslint.json` to match the one generated for new Angular CLI apps in a future commit. PR Close #38143
22 lines
559 B
TypeScript
22 lines
559 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
import { RouterModule } from '@angular/router';
|
|
|
|
import { AppComponent } from './app.component';
|
|
import { HeroesComponent } from './heroes';
|
|
import { HeroService } from './heroes/shared';
|
|
|
|
@NgModule({
|
|
imports: [
|
|
BrowserModule,
|
|
RouterModule.forChild([{ path: '05-04', component: AppComponent }])
|
|
],
|
|
declarations: [
|
|
AppComponent,
|
|
HeroesComponent
|
|
],
|
|
exports: [ AppComponent ],
|
|
providers: [ HeroService ]
|
|
})
|
|
export class AppModule {}
|