2016-04-09 00:18:37 -04:00
|
|
|
<!-- #docregion -->
|
|
|
|
<div *ngIf="hero">
|
|
|
|
<h2>{{hero.name}} details!</h2>
|
|
|
|
<div>
|
|
|
|
<label>id: </label>{{hero.id}}</div>
|
|
|
|
<div>
|
|
|
|
<label>name: </label>
|
|
|
|
<input [(ngModel)]="hero.name" placeholder="name" />
|
|
|
|
</div>
|
|
|
|
<button (click)="goBack()">Back</button>
|
2016-06-27 14:23:27 -04:00
|
|
|
<!-- #docregion save -->
|
2016-04-09 00:18:37 -04:00
|
|
|
<button (click)="save()">Save</button>
|
2016-06-27 14:23:27 -04:00
|
|
|
<!-- #enddocregion save -->
|
|
|
|
</div>
|