chap02 -> Creating templates -> The cart-widget template (Bug Fix)

chap2
Jason Zhu 2022-04-20 21:38:38 +10:00
parent b1fc664fe9
commit 16d677a98c
1 changed files with 3 additions and 1 deletions

View File

@ -91,7 +91,9 @@ var vm = (function () {
addProduct: addProduct, addProduct: addProduct,
// second chapter // second chapter
cart: cart, cart: cart,
showCartDetails: showCartDetails showCartDetails: showCartDetails,
totalItems: totalItems,
grandTotal: grandTotal
}; };
})(); })();
ko.applyBindings(vm); ko.applyBindings(vm);