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