Move Duck detail/editor to a separate component

Signed-off-by: Gergely Polonkai <gergely@polonkai.eu>
This commit is contained in:
2016-09-06 14:21:25 +02:00
parent f7bf483aa7
commit 06af47fccf
4 changed files with 28 additions and 11 deletions

View File

@@ -0,0 +1,10 @@
<div *ngIf="duck">
<div>
<label>id:</label>
{{ duck.id }}
</div>
<div>
<label>color:</label>
<input [(ngModel)]="duck.color" placeholder="Color">
</div>
</div>