Chap02 -> Managing template with jQuery (Bug fixing)

chap2
Jason Zhu 2022-04-21 00:32:44 +10:00
parent 9b7f2fefbe
commit 1b13bd0e0c
2 changed files with 2 additions and 1 deletions

View File

@ -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>

View File

@ -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,