Added a "Loading hero..." message to HeroDetailComponent
[examples/angular-tour-of-heroes] / 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>