Commit Graph

4 Commits (1b13bd0e0c4e23d6fa81abca045b3161dd6082ca)

Author SHA1 Message Date
Jason Zhu e52b7bb978 chap2 -> Creating templates -> The catalog template -> part 3
Add CartProduct.js
Add addToCart method in viewmodel
Rename product.js to Product.js
2022-04-19 23:38:16 +10:00
Jason Zhu d18a1efd31 chap2 -> Creating templates -> The catalog template -> part 2
Move logic of determine color into product.js

Note: This change is not completed
2022-04-19 22:57:03 +10:00
jason.zhu 31e524fe17 chap1->Observables to refresh the UI automatically\n
1. Learned what's Observables \n
2. modify HTML and product.js for data-binding
2021-05-27 03:01:16 +00:00
jason.zhu d7d701f343 chap1->The view-model->The model
1. Create separate model 'Product'
2. Place link to product.js in HTML at correct place
3. Learn & apply Revealing Module Pattern on both Product module and viewmodel
2021-05-27 02:46:22 +00:00