From 14900ea97c7543aafaf334f29b7f08161844037b Mon Sep 17 00:00:00 2001 From: Steven Lacks Date: Mon, 4 Jan 2016 22:03:23 -0500 Subject: [PATCH] docs(tutorial): toh-4 (Services) typo closes #647 missing period in 'hero-detailcomponent.ts' --- public/docs/ts/latest/tutorial/toh-pt4.jade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/docs/ts/latest/tutorial/toh-pt4.jade b/public/docs/ts/latest/tutorial/toh-pt4.jade index 8ca6729064..ec94042910 100644 --- a/public/docs/ts/latest/tutorial/toh-pt4.jade +++ b/public/docs/ts/latest/tutorial/toh-pt4.jade @@ -211,7 +211,7 @@ code-example(format="." language="html"). If the `HeroDetailComponent` needed its parent component's `HeroService`, 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-detail.component.ts (constructor)') :marked The `HeroDetailComponent` must *not* repeat it's parent's `providers` array! Guess [why](#shadow-provider). @@ -393,4 +393,4 @@ code-example(format="." language="html"). Adding the `providers` array creates a new service instance that shadows the parent instance. Think carefully about where and when to register a provider. - Understand the scope of that registration. Be careful not to create a new service instance at the wrong level. \ No newline at end of file + Understand the scope of that registration. Be careful not to create a new service instance at the wrong level.