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

Commit 3e099d6

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

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

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

+2-3
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,7 @@ code-example(format=".")
189189

190190
We tell Angular about it by listing it in the metadata `directives` array. Let's add that array property to the bottom of the
191191
`@Component` configuration object, immediately after the `template` and `styles` properties.
192-
+makeExample('toh-3/ts/app/app.component.ts', 'directives')
193-
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

+1-1
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)