vdeux
vdeux(3) -- redux-vue binding
vdeuxrequiresvue>=2.1.0
$ yarn add redux vdeux
# or
$ npm install --save redux vdeux
usage
import Vue from 'vue'
import vdeux from 'vdeux'
import configureStore from './store'
import {increment} from './store/actions'
const store = configureStore()
Vue.use(vdeux(store))
const vm = new Vue({
map: (state) => ({
count: state
}),
actions: {increment},
created () {
this.$actions.increment()
this.$actions.increment()
}
})
// expect(vm.$state.count).toBe(2)
// expect(vm._store).toBe(store)
Related Packages
@blue-chip/core
BlueChip accepts payloads from GraphQL or JsonAPI servers, normalizes them into...
1,694
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 2.1.4 | >=2.1.0 | Apache-2.0 | |
| 2.1.3 | >=2.1.0 | Apache-2.0 | |
| 2.1.2 | >=2.1.0 | Apache-2.0 | |
| 2.1.1 | >=2.1.0 | Apache-2.0 | |
| 2.1.0 | >=2.1.0 | Apache-2.0 | |
| 2.0.1 | >=2.1.0 | Apache-2.0 | |
| 2.0.0 | ^2.0.3 | Apache-2.0 | |
| 1.0.0 | ^2.0.3 | Apache-2.0 | |
| 0.1.8 | ^2.0.3 | Apache-2.0 | |
| 0.1.7 | ^2.0.3 | Apache-2.0 | |
| 0.1.6 | ^2.0.3 | Apache-2.0 | |
| 0.1.5 | ^2.0.3 | Apache-2.0 | |
| 0.1.4 | ^2.0.3 | Apache-2.0 | |
| 0.1.3 | ^2.0.3 | Apache-2.0 | |
| 0.1.2 | ^2.0.3 | Apache-2.0 |