projects
/
examples
/
angular-tour-of-heroes
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
4: Add Services
[examples/angular-tour-of-heroes]
/
src
/
app
/
hero-detail
/
hero-detail.component.html
1
<div *ngIf="hero">
2
<h2>{{hero.name | uppercase}} Details</h2>
3
<div><span>id: </span>{{hero.id}}</div>
4
<div>
5
<label>name: </label>
6
<input [(ngModel)]="hero.name" placeholder="Type a name..." />
7
</div>
8
</div>