Move to using routers

Signed-off-by: Gergely Polonkai <gergely@polonkai.eu>
This commit is contained in:
2016-09-06 15:35:20 +02:00
parent 8c0ecca40f
commit 29a0eb7f33
11 changed files with 118 additions and 45 deletions

11
app/ducks.component.html Normal file
View File

@@ -0,0 +1,11 @@
<h1>Hello!</h1>
<ul>
<li *ngFor="let duck of ducks" (click)="onSelect(duck)">
{{ duck.color }}
</li>
</ul>
<div *ngIf="selectedDuck">
{{ selectedDuck.color }}
<button (click)="gotoDetail(selectedDuck)">Edit</button>
</div>