projects
/
examples
/
angular-tour-of-heroes
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd92a66
)
Added a "Loading hero..." message to HeroDetailComponent
author
Kai Moritz
<kai@juplo.de>
Mon, 11 May 2020 16:11:51 +0000
(18:11 +0200)
committer
Kai Moritz
<kai@juplo.de>
Mon, 11 May 2020 16:23:16 +0000
(18:23 +0200)
src/app/hero-detail/hero-detail.component.html
patch
|
blob
|
history
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>