-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (43 loc) · 2.18 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en" ng-app="store">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Angular Test</title>
<!-- Bootstrap -->
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body class="container">
<div class="container-fluid" ng-controller="StoreController as store">
<h1>{{store.products.length}} Products in Store</h1>
<h4>{{'1413339098' | date:'MM/dd/yyyy @ h:mma' | lowercase }}</h4>
<ul class="list-group">
<li class="list-group-item" ng-repeat="product in store.products | limitTo:10 | orderBy: '-price'">
<!--INDIVIDUAL PRODUCT THAT IS STILL IN STOCK-->
<div ng-hide="product.soldOut">
<product-title></product-title>
<img class="img-responsive" ng-src="{{product.images[0].full}}" />
<!--PRODUCT PANELS/TABS SECTION-->
<product-panels></product-panels>
</div>
<!--ADD TO CART BUTTON-->
<button type="button" class="btn btn-lg btn-default" ng-show="product.canPurchase">Add to Cart</button>
</li>
</ul>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>-->
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script type="text/javascript" src="js/angular.min.js"></script>
<script type="text/javascript" src="js/app.js"></script>
<script type="text/javascript" src="js/products.js"></script>
</body>
</html>