Update toh-pt1.jade (#3495)
The 'hero' property is in the AppComponent class, not in Hero.
This commit is contained in:
parent
7784faa180
commit
f1c6220857
|
@ -76,7 +76,7 @@ code-example(language="sh" class="code-shell").
|
||||||
+makeExample('toh-1/ts/src/app/app.component.ts', 'hero-class-1', 'src/app/app.component.ts (Hero class)')(format=".")
|
+makeExample('toh-1/ts/src/app/app.component.ts', 'hero-class-1', 'src/app/app.component.ts (Hero class)')(format=".")
|
||||||
|
|
||||||
:marked
|
:marked
|
||||||
In the `Hero` class, refactor the component's `hero` property to be of type `Hero`,
|
In the `AppComponent` class, refactor the component's `hero` property to be of type `Hero`,
|
||||||
then initialize it with an `id` of `1` and the name `Windstorm`.
|
then initialize it with an `id` of `1` and the name `Windstorm`.
|
||||||
|
|
||||||
+makeExample('toh-1/ts/src/app/app.component.ts', 'hero-property-1', 'src/app/app.component.ts (hero property)')(format=".")
|
+makeExample('toh-1/ts/src/app/app.component.ts', 'hero-property-1', 'src/app/app.component.ts (hero property)')(format=".")
|
||||||
|
|
Loading…
Reference in New Issue