6 <!-- (click) passes input value to add() and then clears the input -->
7 <button (click)="add(heroName.value); heroName.value=''">
12 <li *ngFor="let hero of heroes">
13 <a routerLink="/detail/{{hero.id}}">
14 <span class="badge">{{hero.id}}</span> {{hero.name}}