vue-redux-mixin [experimental]
For Vue.js 1.0.18+.
Super simple Vue.js + Redux binding mixin
Features
- Inside .vue components you can access to shared state with
this.state
; - Dispatch Redux actions directly in store (like normal) or use
this.$actions.actionName(value)
store/index.js:
;;;; const store = ; = ;
index.js:
;; Vue;
app.vue:
{{ state.msg }}
http://www.webpackbin.com/NJZza92Tx
TODO
- Add options documentation
- Add example project
- Use deep freeze on state?
- Figure out what needs to improve