Update toh-pt2.md

This commit is contained in:
Kang Li 2018-07-06 11:53:16 +08:00 committed by 雪狼
parent 2413301af8
commit 5b483ae41e
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ Angular calls it with the `hero` object displayed in the clicked `<li>`,
the same `hero` defined previously in the `*ngFor` expression.
`onSelect()``HeroesComponent` 上的一个方法,你很快就要写它。
Angular 会把所点击的 `<li>` 上的 `hero` 对象传给它,这个 `hero` 也就是前在 `*ngFor` 表达式中定义的那个。
Angular 会把所点击的 `<li>` 上的 `hero` 对象传给它,这个 `hero` 也就是前`*ngFor` 表达式中定义的那个。
### Add the click event handler