exam/example/app/app.html

20 lines
449 B
HTML
Raw Normal View History

2017-06-10 16:28:49 +03:00
<div *ngFor="let item of items">
{{ item.title }} ({{ item.price }} EUR/KG)
<a href
style="text-decoration: none"
(click)="decreaseQuantity(item); false">&nbsp;-&nbsp;</a>
<input size="1" [(ngModel)]="item.quantity">
<a href
style="text-decoration: none"
(click)="increaseQuantity(item); false">&nbsp;+&nbsp;</a>
</div>
<br />
Kokku: {{ getTotal() }} EUR
<br /><br />
<button>Saada tellimus</button>