Files
angular/aio/content/examples/styleguide/src/05-04/app/app.module.ts
George Kalpakas 24498eb416 style(docs-infra): fix docs examples for tslint rule import-spacing (#38143)
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
2020-07-31 11:00:07 -07:00

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 {}