docs: fix issues related to tutorial. (#24445)

PR Close #24445
This commit is contained in:
Vani
2018-06-12 07:42:17 +05:30
committed by Kara Erickson
parent 6a62ed2245
commit c7e2930f25
6 changed files with 58 additions and 19 deletions

View File

@ -28,9 +28,9 @@ Open the `HeroesComponent` class file and import the mock `HEROES`.
<code-example path="toh-pt2/src/app/heroes/heroes.component.ts" region="import-heroes" title="src/app/heroes/heroes.component.ts (import HEROES)">
</code-example>
Add a `heroes` property to the class that exposes these heroes for binding.
In the same file (`HeroesComponent` class), define a component property called `heroes` to expose `HEROES` array for binding.
<code-example path="toh-pt2/src/app/heroes/heroes.component.ts" region="heroes">
<code-example path="toh-pt2/src/app/heroes/heroes.component.ts" region="component">
</code-example>
### List heroes with _*ngFor_
@ -245,6 +245,7 @@ Here are the code files discussed on this page, including the `HeroesComponent`
<code-pane title="src/app/heroes/heroes.component.css" path="toh-pt2/src/app/heroes/heroes.component.css">
</code-pane>
</code-tabs>
## Summary