projects
/
examples
/
angular-tour-of-heroes
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added a "Loading hero..." message to HeroDetailComponent
[examples/angular-tour-of-heroes]
/
src
/
app
/
hero-detail
/
hero-detail.component.html
diff --git
a/src/app/hero-detail/hero-detail.component.html
b/src/app/hero-detail/hero-detail.component.html
index
512825a
..
29f8495
100644
(file)
--- a/
src/app/hero-detail/hero-detail.component.html
+++ b/
src/app/hero-detail/hero-detail.component.html
@@
-1,3
+1,6
@@
+<div *ngIf="!hero">
+ <span>Loading hero...</span>
+</div>
<div *ngIf="hero">
<h2>{{hero.name | uppercase}} Details</h2>
<div><span>id: </span>{{hero.id}}</div>