
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
31 lines
771 B
TypeScript
31 lines
771 B
TypeScript
// #docplaster
|
|
// #docregion
|
|
// #docregion example
|
|
import { NgModule } from '@angular/core';
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
// #enddocregion example
|
|
import { RouterModule } from '@angular/router';
|
|
// #docregion example
|
|
|
|
import { AppComponent } from './app.component';
|
|
import { HeroesComponent } from './heroes/heroes.component';
|
|
import { CoreModule } from './core/core.module';
|
|
|
|
@NgModule({
|
|
imports: [
|
|
BrowserModule,
|
|
CoreModule,
|
|
// #enddocregion example
|
|
RouterModule.forChild([{ path: '04-12', component: AppComponent }])
|
|
// #docregion example
|
|
],
|
|
declarations: [
|
|
AppComponent,
|
|
HeroesComponent
|
|
],
|
|
exports: [ AppComponent ],
|
|
entryComponents: [ AppComponent ]
|
|
})
|
|
export class AppModule {}
|
|
// #enddocregion example
|