From 008800af998862d45aa9e56b55f4da2505d9103a Mon Sep 17 00:00:00 2001 From: yamasy1549 Date: Fri, 12 Aug 2016 13:06:36 +0900 Subject: [PATCH] docs(toh-5): Fix lack of declaring in a sample code Fixes https://github.com/angular/angular.io/issues/2096. HeroDetailComponent was missing, so the app didn't work. --- public/docs/_examples/toh-5/ts/app/app.module.1.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/docs/_examples/toh-5/ts/app/app.module.1.ts b/public/docs/_examples/toh-5/ts/app/app.module.1.ts index 473ca08fb8..03c4e2d756 100644 --- a/public/docs/_examples/toh-5/ts/app/app.module.1.ts +++ b/public/docs/_examples/toh-5/ts/app/app.module.1.ts @@ -7,6 +7,8 @@ import { AppComponent } from './app.component'; import { HeroesComponent } from './heroes.component'; +import { HeroDetailComponent } from './hero-detail.component'; + import { HeroService } from './hero.service'; @NgModule({ @@ -16,7 +18,8 @@ import { HeroService } from './hero.service'; ], declarations: [ AppComponent, - HeroesComponent + HeroesComponent, + HeroDetailComponent ], providers: [ HeroService