diff --git a/store-front/src/app/components/book-detail/book-detail.component.html b/store-front/src/app/components/book-detail/book-detail.component.html
index f3646a0..137c460 100644
--- a/store-front/src/app/components/book-detail/book-detail.component.html
+++ b/store-front/src/app/components/book-detail/book-detail.component.html
@@ -1,21 +1,20 @@
-
-
-
All Books
-
-
-

-
-
-
-

-
-
-
+
+
+
All Books
+
+
+

+
+
+
+

+
+
Added to cart.
@@ -31,7 +30,6 @@
{{book.format}}: {{book.numberOfPages}} pages
ISBN: {{book.isbn}}
Shipping Weight: {{book.shippingWeight}} ounces
-
@@ -41,23 +39,21 @@
Our Price: ${{book.ourPrice | number : '1.2-2'}}
List Price: ${{book.listPrice | number : '1.2-2'}}
-
You Save: ${{book.listPrice-book.ourPrice | number : '1.2-2'}}
+ >{{book.listPrice | number : '1.2-2'}}
+
+
You Save: ${{book.listPrice-book.ourPrice | number : '1.2-2'}}
Qty:
10" style="color: green;">In Stock
- 0"
- style="color: green;"> Only {{book.inStockNumber}} In
+ 0" style="color: green;"> Only {{book.inStockNumber}} In
Stock
Unavailable
-
@@ -70,5 +66,5 @@
{{book.description}}
-
-
\ No newline at end of file
+
+
diff --git a/store-front/src/app/components/order/order.component.html b/store-front/src/app/components/order/order.component.html
index 3f114b9..2d9175d 100644
--- a/store-front/src/app/components/order/order.component.html
+++ b/store-front/src/app/components/order/order.component.html
@@ -296,12 +296,12 @@
Choose your shipping method:
@@ -319,12 +319,11 @@
${
console.log(res.text());
this.getCartItemList();
+ this.getShoppingCart();
},
error=>{
console.log(error.text());
@@ -43,6 +44,7 @@ export class ShoppingCartComponent implements OnInit {
res=>{
console.log(res.text());
this.cartItemUpdated=true;
+ this.getShoppingCart();
},
error=>{
console.log(error.text());
@@ -62,10 +64,7 @@ export class ShoppingCartComponent implements OnInit {
);
}
- ngOnInit() {
- this.getCartItemList();
-
-
+ getShoppingCart(){
this.cartService.getShoppingCart().subscribe(
res=>{
console.log(res.json());
@@ -77,4 +76,10 @@ export class ShoppingCartComponent implements OnInit {
);
}
+ ngOnInit() {
+ this.getCartItemList();
+
+ this.getShoppingCart();
+ }
+
}