Commit Graph

21 Commits (7256b15da7197ba41e750e4ea3aeabd531d6bfdc)

Author SHA1 Message Date
Jason Zhu 7256b15da7 chap02 -> Creating template -> The cart template 2022-04-20 22:04:15 +10:00
Jason Zhu a9fdd8d516 chap2 -> Creating templates -> The cart-item template 2022-04-20 21:54:35 +10:00
Jason Zhu 16d677a98c chap02 -> Creating templates -> The cart-widget template (Bug Fix) 2022-04-20 21:38:38 +10:00
Jason Zhu b1fc664fe9 chap02 -> Creating templates -> The cart-widget template 2022-04-20 21:30:56 +10:00
Jason Zhu b299143ee2 chap02 -> Creating templates -> The add-to-cart-modal template 2022-04-20 19:25:18 +10:00
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 3001e6f436 chap2 -> Creating templates -> The catalog template -> part 1
Adding catalog template in simplest way
2022-04-19 22:39:27 +10:00
jason.zhu 4b8c3312f0 chap2->Creating templates->The header template 2021-05-27 05:43:48 +00:00
jason.zhu 61c3776031 chap2->Creating templates: define templates in index.html 2021-05-27 05:31:01 +00:00
jason.zhu ee6c23d6d3 chap2. KnockoutJS Templates->Preparing the project 2021-05-27 05:23:23 +00:00
jason.zhu 834316a5a4 chap1->Observables to refresh the UI automatically->Computed observables (optimised) 2021-05-27 04:43:27 +00:00
jason.zhu 48d61e59b9 chap1->observables to refresh the ui automatically->Computed observables (non optimized) 2021-05-27 04:36:59 +00:00
jason.zhu 60608b8b6c Prettify html 2021-05-27 04:24:43 +00:00
jason.zhu 9cb6be067a chap1->Observables to refresh the UI automatically->Inserting elements in collections
1. Learned with binding for context switch

2. Learned textInput for text binding

3. click binding for event driven
2021-05-27 04:22:28 +00:00
jason.zhu 27dfb6c739 chap1->Observables to refresh the UI automatically->Managing collections with observables
1. Learned what is observableArray

2. Create catalog in viewmodel using observableArray

3. Create foreach databind in html
2021-05-27 03:58:59 +00: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
jason.zhu 4e774c2585 chap1->The view-model->The view 2021-05-27 02:03:06 +00:00
jason.zhu 00e4f10418 Prettifier html using Prettier 2021-05-27 01:49:42 +00:00
jason.zhu 47ba11cee4 chap1->Installing components 2021-05-27 01:29:14 +00:00