Move to using routers
Signed-off-by: Gergely Polonkai <gergely@polonkai.eu>
This commit is contained in:
11
app/ducks.component.html
Normal file
11
app/ducks.component.html
Normal 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>
|
Reference in New Issue
Block a user