Add example of finished app

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

1
example/README.md Normal file
View File

@ -0,0 +1 @@
# minified exam example of finished product

767
example/app.js Normal file

File diff suppressed because one or more lines are too long

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>

18
example/index.html Normal file
View File

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<base href="">
<title>cart</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<my-app></my-app>
<script src="polyfills.js"></script>
<script src="app.js"></script>
</body>
</html>

71
example/polyfills.js Normal file

File diff suppressed because one or more lines are too long