Fixing typo in pt4 of tutorial

closes #596
I think the author intended to reference `providers` and not `directives`.
He did indeed!
This commit is contained in:
adamclerk 2015-12-20 18:27:01 -07:00 committed by Ward Bell
parent 42f3381ec2
commit c2e1b55f6c
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ code-example(format="." language="html").
it would ask Angular to inject the service into its constructor which would look just like the one for `AppComponent`: it would ask Angular to inject the service into its constructor which would look just like the one for `AppComponent`:
+makeExample('toh-4/ts/app/app.component.1.ts', 'ctor', 'hero-detailcomponent.ts (constructor)') +makeExample('toh-4/ts/app/app.component.1.ts', 'ctor', 'hero-detailcomponent.ts (constructor)')
:marked :marked
The `HeroDetailComponent` must *not* repeat it's parent's `directives` array! Guess [why](#shadow-provider). The `HeroDetailComponent` must *not* repeat it's parent's `providers` array! Guess [why](#shadow-provider).
The `AppComponent` is the top level component of our application. The `AppComponent` is the top level component of our application.
There should be only one instance of that component and only one instance of the `HeroService` in our entire app. There should be only one instance of that component and only one instance of the `HeroService` in our entire app.