Added a "Loading hero..." message to HeroDetailComponent
authorKai Moritz <kai@juplo.de>
Mon, 11 May 2020 16:11:51 +0000 (18:11 +0200)
committerKai Moritz <kai@juplo.de>
Mon, 11 May 2020 16:23:16 +0000 (18:23 +0200)
src/app/hero-detail/hero-detail.component.html

index 512825a..29f8495 100644 (file)
@@ -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>