Update toh-pt1.jade (#3495)

The 'hero' property is in the AppComponent class, not in Hero.
This commit is contained in:
Double-A-92 2017-04-12 04:34:15 +02:00 committed by Ward Bell
parent 7784faa180
commit f1c6220857
1 changed files with 1 additions and 1 deletions

View File

@ -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=".")
: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`.
+makeExample('toh-1/ts/src/app/app.component.ts', 'hero-property-1', 'src/app/app.component.ts (hero property)')(format=".")