Add example of finished app
This commit is contained in:
parent
8aee3b6c3f
commit
e4904959fa
1
example/README.md
Normal file
1
example/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
# minified exam example of finished product
|
767
example/app.js
Normal file
767
example/app.js
Normal file
File diff suppressed because one or more lines are too long
19
example/app/app.html
Normal file
19
example/app/app.html
Normal 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"> - </a>
|
||||||
|
<input size="1" [(ngModel)]="item.quantity">
|
||||||
|
<a href
|
||||||
|
style="text-decoration: none"
|
||||||
|
(click)="increaseQuantity(item); false"> + </a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br />
|
||||||
|
Kokku: {{ getTotal() }} EUR
|
||||||
|
|
||||||
|
<br /><br />
|
||||||
|
|
||||||
|
<button>Saada tellimus</button>
|
18
example/index.html
Normal file
18
example/index.html
Normal 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
71
example/polyfills.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user