Chap02 -> Managing template with jQuery (Bug fixing)
parent
9b7f2fefbe
commit
1b13bd0e0c
|
@ -14,7 +14,7 @@
|
||||||
<div class="well" data-bind="template:{name:'cart'}"></div>
|
<div class="well" data-bind="template:{name:'cart'}"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row hidden" id="ifnot: visibleCatalog">
|
<div class="row" data-bind="if: visibleCart">
|
||||||
<div data-bind="template:{name:'order'}"></div>
|
<div data-bind="template:{name:'order'}"></div>
|
||||||
</div>
|
</div>
|
||||||
<div data-bind="template: {name:'add-to-catalog-modal'}"></div>
|
<div data-bind="template: {name:'add-to-catalog-modal'}"></div>
|
||||||
|
|
|
@ -123,6 +123,7 @@ var vm = (function () {
|
||||||
// second chapter
|
// second chapter
|
||||||
cart: cart,
|
cart: cart,
|
||||||
showCartDetails: showCartDetails,
|
showCartDetails: showCartDetails,
|
||||||
|
addToCart: addToCart,
|
||||||
totalItems: totalItems,
|
totalItems: totalItems,
|
||||||
grandTotal: grandTotal,
|
grandTotal: grandTotal,
|
||||||
removeFromCart: removeFromCart,
|
removeFromCart: removeFromCart,
|
||||||
|
|
Loading…
Reference in New Issue