5: Add In-app Navigation
[examples/angular-tour-of-heroes] / src / app / hero-detail / hero-detail.component.html
index fa00c62..512825a 100644 (file)
@@ -6,3 +6,4 @@
     <input [(ngModel)]="hero.name" placeholder="Type a name..." />
   </div>
 </div>
+<button (click)="goBack()">go back</button>