Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit b1da1c8

Browse files
committed
docs(toh): put a bit of clarification
1 parent 1c0218b commit b1da1c8

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

public/docs/ts/latest/tutorial/toh-pt3.jade

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,9 @@ code-example(format=".")
187187

188188
We've imported `HeroDetailComponent`, we've used it in the template, but we haven't told Angular about it.
189189

190-
We tell Angular about it by listing it in the metadata `directives` array. Let's add that array property to the bottom of the
191-
`@Component` configuration object, immediately after the `template` and `styles` properties.
192-
+makeExample('toh-3/ts/app/app.component.ts', 'directives')
193-
190+
We tell Angular about it by listing it in the metadata `directives` array. Let's add that array property to the `@Component` configuration object,
191+
after the `styles` property for example.
192+
+makeExample('toh-3/ts/app/app.component.ts', 'directives', 'app/app.component.ts')
194193

195194
:marked
196195
### It works!
@@ -215,7 +214,7 @@ code-example(format=".")
215214
.file hero-detail.component.ts
216215
.file main.ts
217216
.file node_modules ...
218-
.file typings ...
217+
.file typings ...
219218
.file index.html
220219
.file package.json
221220
.file tsconfig.json

public/docs/ts/latest/tutorial/toh-pt4.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ code-example(format="." language="html").
211211

212212
If the `HeroDetailComponent` needed its parent component's `HeroService`,
213213
it would ask Angular to inject the service into its constructor which would look just like the one for `AppComponent`:
214-
+makeExample('toh-4/ts/app/app.component.1.ts', 'ctor', 'hero-detail.component.ts (constructor)')
214+
+makeExample('toh-4/ts/app/app.component.1.ts', 'ctor', 'hero-detail.component.ts (example)')
215215
:marked
216216
The `HeroDetailComponent` must *not* repeat its parent's `providers` array! Guess [why](#shadow-provider).
217217

0 commit comments

Comments
 (0)