projects
/
examples
/
angular-tour-of-heroes
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2: Display a List
[examples/angular-tour-of-heroes]
/
src
/
app
/
heroes
/
heroes.component.html
1
<h2>My Heroes</h2>
2
<ul class="heroes">
3
<li *ngFor="let hero of heroes">
4
<span class="badge">{{hero.id}}</span> {{hero.name}}
5
</li>
6
</ul>
7
<h2>{{hero.name | uppercase}} Details</h2>
8
<div><span>id: </span>{{hero.id}}</div>
9
<div>
10
<label>name: </label>
11
<input [(ngModel)]="hero.name" placeholder="Type a name..." />
12
</div>