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,
// second chapter
cart: cart,
showCartDetails: showCartDetails
showCartDetails: showCartDetails,
totalItems: totalItems,
grandTotal: grandTotal
};
})();
ko.applyBindings(vm);