This repository was archived by the owner on Dec 4, 2017. It is now read-only.
File tree 2 files changed +3
-4
lines changed
public/docs/ts/latest/tutorial
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -189,8 +189,7 @@ code-example(format=".")
189
189
190
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
191
`@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' )
194
193
195
194
:marked
196
195
### It works!
@@ -215,7 +214,7 @@ code-example(format=".")
215
214
.file hero-detail.component.ts
216
215
.file main.ts
217
216
.file node_modules ...
218
- .file typings ...
217
+ .file typings ...
219
218
.file index.html
220
219
.file package.json
221
220
.file tsconfig.json
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ code-example(format="." language="html").
211
211
212
212
If the `HeroDetailComponent` needed its parent component's `HeroService`,
213
213
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 )' )
215
215
:marked
216
216
The `HeroDetailComponent` must *not* repeat its parent's `providers` array! Guess [why](#shadow-provider).
217
217
You can’t perform that action at this time.
0 commit comments