Skip to content

Commit cd4bb44

Browse files
committed
Minor edits to support the last modules of the course.
1 parent 90636b7 commit cd4bb44

File tree

4 files changed

+1007
-23
lines changed

4 files changed

+1007
-23
lines changed

APM/app/common/services/productResourceMock.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,27 @@ module app.common {
1313
var product: app.domain.IProduct;
1414
1515
product = new app.domain.Product(1, "Leaf Rake", "GDN-0011", new Date(2009, 3, 19), 19.95,
16+
"Leaf rake with 48-inch wooden handle.",
1617
"http://openclipart.org/image/300px/svg_to_png/26215/Anonymous_Leaf_Rake.png");
1718
products.push(product);
1819
1920
product = new app.domain.Product(2, "Garden Cart", "GDN-0023", new Date(2010, 3, 18), 26.95,
21+
"15 gallon capacity rolling garden cart",
2022
"http://openclipart.org/image/300px/svg_to_png/58471/garden_cart.png");
2123
products.push(product);
2224
2325
product = new app.domain.Product(3, "Saw", "TBX-002", new Date(2002, 3, 1), 16.95,
26+
"15-inch steel blade hand saw",
2427
"http://openclipart.org/image/300px/svg_to_png/27070/egore911_saw.png");
2528
products.push(product);
2629
2730
product = new app.domain.Product(4, "Hammer", "TBX-0048", new Date(2013, 5, 21), 8.99,
31+
"Curved claw steel hammer",
2832
"http://openclipart.org/image/300px/svg_to_png/73/rejon_Hammer.png");
2933
products.push(product);
3034
3135
product = new app.domain.Product(5, "Video Game Controller", "GMG-0042", new Date(2012, 10, 15), 35.95,
36+
"Standard five-button video game controller",
3237
"http://openclipart.org/image/300px/svg_to_png/120337/xbox-controller_01.png");
3338
products.push(product);
3439
Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="panel panel-primary">
22
<div class="panel-heading" style="font-size:large">
3-
{{vm.title}}
3+
{{::vm.title}}
44
</div>
55

66
<div class="panel-body">
@@ -22,22 +22,10 @@
2222
<div class="col-md-2">Availability:</div>
2323
<div class="col-md-6">{{vm.product.releaseDate|date }}</div>
2424
</div>
25-
<div class="row">
26-
<div class="col-md-2">Cost:</div>
27-
<div class="col-md-6">{{vm.product.cost|currency }}</div>
28-
</div>
2925
<div class="row">
3026
<div class="col-md-2">Price:</div>
3127
<div class="col-md-6">{{ vm.product.price|currency }}</div>
3228
</div>
33-
<div class="row">
34-
<div class="col-md-2">Margin:</div>
35-
<div class="col-md-6">{{ vm.marginPercent | number:0}}%</div>
36-
</div>
37-
<div class="row">
38-
<div class="col-md-2">Tags:</div>
39-
<div class="col-md-6">{{vm.product.tagList}}</div>
40-
</div>
4129
</div>
4230

4331
<div class="col-md-6">
@@ -50,15 +38,9 @@
5038
</div>
5139
<div class="panel-footer">
5240
<a class="btn btn-default"
53-
ui-sref="productList"
41+
ng-href="#productList"
5442
style="width:80px">
55-
<I class="glyphicon glyphicon-chevron-left"></i>
56-
Back
57-
</a>
58-
<a class="btn btn-primary"
59-
ui-sref="productEdit.info({productId: vm.product.productId})"
60-
style="width:80px;margin-left:10px">
61-
Edit
43+
< Back
6244
</a>
6345
</div>
6446
</div>

APM/index.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,17 @@
2323

2424
<!-- Library Scripts -->
2525
<script src="scripts/angular.js"></script>
26-
26+
<script src="scripts/angular-resource.js"></script>
27+
<script src="scripts/angular-mocks.js"></script>
28+
<script src="scripts/angular-route.js"></script>
29+
2730
<!-- Application Script -->
2831

32+
<!-- Domain Classes -->
33+
2934
<!-- Services -->
3035

31-
<!-- Product Controllers -->
36+
<!-- Controllers -->
3237
</body>
3338

3439
</html>

0 commit comments

Comments
 (0)