-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
36 lines (34 loc) · 686 Bytes
/
Copy pathapp.js
File metadata and controls
36 lines (34 loc) · 686 Bytes
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
(function() {
var app = angular.module('store', [ ]);
app.controller('StoreController', function(){
this.products = gems;
});
var gems = [
{
name: 'Dodecahedron',
price: 2,
description: 'Ten sides of gem.',
canPurchase: true,
soldOut: true
},
{
name: 'Pentagonal Gem',
price: 5.95,
description: 'Five sides of gem.',
canPurchase: false,
soldOut: false
},
{
name: 'Hexagonal Gem',
price: 6.95,
description: 'Six sides of gem.',
canPurchase: true,
},
{
name: 'Heptagonal Gem',
price: 7.95,
description: 'Seven sides of gem.',
canPurchase: false,
},
];
})();