2015-12-11 15:37:35 -08:00
|
|
|
<!-- #docregion -->
|
|
|
|
<h2>Hero List</h2>
|
|
|
|
|
|
|
|
<p><i>Pick a hero from the list</i></p>
|
2016-07-01 08:44:28 -07:00
|
|
|
<ul>
|
|
|
|
<li *ngFor="let hero of heroes" (click)="selectHero(hero)">
|
|
|
|
{{hero.name}}
|
|
|
|
</li>
|
|
|
|
</ul>
|
2015-12-11 15:37:35 -08:00
|
|
|
|
|
|
|
<hero-detail *ngIf="selectedHero" [hero]="selectedHero"></hero-detail>
|