-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
69 lines (61 loc) · 2.28 KB
/
index.html
File metadata and controls
69 lines (61 loc) · 2.28 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
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<html ng-app="store">
<head>
<title>My App</title>
<script type="text/javascript" src="node_modules/angular/angular.min.js"></script>
<script type="text/javascript" src="app.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body ng-controller="StoreController as store">
<!-- Directive: ng-controller, Controller Name: StoreController, Alias:store-->
<ul class="list-group">
<li class="list-group-item" ng-repeat="product in store.products">
<h3>
{{product.name}}
<em class="pull-right">{{product.price | currency}}</em>
<img ng-src="{{product.images[0].full}}"/>
<ul id="prettyButtons" ng-init="tab = 1">
<ul class="nav nav-pills">
<li ng-class="{active:tab === 1}">
<a href ng-click="tab = 1">Description</a>
</li>
<li ng-class="{ active:tab === 2}">
<a href ng-click="tab = 2">Specifications</a>
</li>
<li ng-class="{ active:tab === 3}">
<a href ng-click="tab = 3">Reviews</a>
</li>
</ul>
</ul>
</section>
</h3>
<ul class="nav nav-pills">
<div class="panel" ng-show="tab === 1">
<h4>Description</h4>
<blockquote>{{product.description}}</blockquote>
</div>
<div class="panel" ng-show="tab === 2">
<h4>Specifications</h4>
<blockquote>None yet</blockquote>
</div>
<div class="panel" ng-show="tab === 3">
<h4>Reviews</h4>
<blockquote>None yet</blockquote>
</div>
</ul>
</li>
</ul>
<p>
Example: I am {{'Daniela' + ' Barrientos ' + (2+2)}}
</p>
</body>
</html>
<!--
<div ng-repeat="product in store.products">
<h1>{{product.name}}</h1>
<h2>${{product.price}}</h2>
<p>{{product.description}}</p>
<button ng-show="product.canPurchase">Add to cart</button>
</div> -->