3: Create a Feature Component
authorKai Moritz <kai@juplo.de>
Sat, 2 May 2020 17:23:58 +0000 (19:23 +0200)
committerKai Moritz <kai@juplo.de>
Sat, 2 May 2020 17:23:58 +0000 (19:23 +0200)
b) Show the HeroDetailComponent

src/app/heroes/heroes.component.html

index e0067e7..a2e93c2 100644 (file)
@@ -4,3 +4,4 @@
     <span class="badge">{{hero.id}}</span> {{hero.name}}
   </li>
 </ul>
+<app-hero-detail [hero]="selectedHero"></app-hero-detail>