-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
57 lines (43 loc) · 1.87 KB
/
index.html
File metadata and controls
57 lines (43 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html ng-app="Main">
<head>
<meta charset="utf-8" />
<link data-require="bootstrap@*" data-semver="3.3.1" rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" />
<!-- <script data-require="bootstrap@*" data-semver="3.3.1" src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script> -->
<link href="style/shop.css" rel="stylesheet" type="text/css" />
<!--<script data-require="angular.js@*" data-semver="1.4.0-beta.2" src="https://code.angularjs.org/1.4.0-beta.2/angular.js"></script> -->
<title>Milkshop</title>
</head>
<body>
<h1 class="center"> Welcome to the most awesome milkshop </h1>
<div ng-controller="cartController" class="well center">
<h3>Cart</h3>
<table class="table table-bordered table-stripped">
<tr class="colWidth">
<th>Product</th>
<th>Quantity</th>
<th>Price Per Item</th>
<tr>
<tr ng-repeat="cartProduct in cartProducts">
<td>{{cartProduct.product.name}}</td>
<td>{{cartProduct.quantity}}</td>
<td>{{cartProduct.product.price}}</td>
<td><button ng-click="delProd(cartProduct)" class="btn"> slet </button></td>
</tr>
<tr>
<td> <a ng-href="#/checkout/"> To checkout </a> </td>
</tr>
</table>
</div>
<div ng-view class="center">
</div>
<script src="angular/angular.min.js"></script>
<script src="angular-route/angular-route.min.js"></script>
<script src="app.module.js"></script>
<script src="cart/cart.service.js"></script>
<script src="products/products.service.js"></script>
<script src="cart/cart.controller.js"></script>
<script src="products/products.controller.js"></script>
<script src="products/product.controller.js"></script>
</body>
</html>