Skip to content

Files

Latest commit

33edf02 · Jul 26, 2018

History

History

vuex-counter-todo

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 26, 2018
Jul 26, 2018
Jul 26, 2018
Jul 26, 2018
Jul 26, 2018
Jul 26, 2018
Jul 26, 2018
Jul 26, 2018
Jul 26, 2018
Jul 26, 2018
Jul 26, 2018
Jul 26, 2018

Vuex SPA: Counter + TODO

Uni-directional data flow (like react flux / redux)

a s y n c
 R E S T
  A P I
   ^|
   |v
  action -> mutation -> state -> vue component
    ^                                  |
    |                                  |
    +----------------------------------+
  • state is mutable (Mutator function)
  • on state change, vue will automatically knows which components require re-rendering
  • disadvantage: you can't really use v-model on bit of application state available commands
yarn install
yarn dev
yarn build
yarn build --report
yarn deploy

For detailed explanation on how things work, checkout the guide and docs for vue-loader.