Add example of finished app

This commit is contained in:
2017-06-10 16:28:49 +03:00
parent 8aee3b6c3f
commit e4904959fa
5 changed files with 876 additions and 0 deletions

19
example/app/app.html Normal file
View File

@@ -0,0 +1,19 @@
<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>