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>
</div>
<div class="row hidden" id="ifnot: visibleCatalog">
<div class="row" data-bind="if: visibleCart">
<div data-bind="template:{name:'order'}"></div>
</div>
<div data-bind="template: {name:'add-to-catalog-modal'}"></div>

View File

@ -123,6 +123,7 @@ var vm = (function () {
// second chapter
cart: cart,
showCartDetails: showCartDetails,
addToCart: addToCart,
totalItems: totalItems,
grandTotal: grandTotal,
removeFromCart: removeFromCart,