diff --git a/ko-cart/index.html b/ko-cart/index.html
index c0338fa..10303e2 100644
--- a/ko-cart/index.html
+++ b/ko-cart/index.html
@@ -6,52 +6,25 @@
-
+ Catalog
+ Items:
+
+
+
+
+ Name |
+ Price |
+ Stock |
+
+
+
+
+ |
+ |
+ |
+
+
+
diff --git a/ko-cart/js/viewmodel.js b/ko-cart/js/viewmodel.js
index 7e001d3..ec897ae 100644
--- a/ko-cart/js/viewmodel.js
+++ b/ko-cart/js/viewmodel.js
@@ -1,7 +1,15 @@
+"use strict";
var vm = (function() {
- product: Product(1, 'T-Shirt', 10, 20);
+
+ var catalog = [
+ Product(1, "T-Shirt", 10.00, 20),
+ Product(2, "Trousers", 20.00, 10),
+ Product(3, "Shirt", 15.00, 20),
+ Product(4, "Shorts", 5.00, 10)
+ ];
+
return {
- product: product
+ catalog: catalog
};
})();
ko.applyBindings(vm);
\ No newline at end of file