Following VueX Modulator - Part 1: generating VueX modules (en)
I tested the "modulator" on a Nativescript-vue application and it works well. Use it like this:
// app/store.js
import Vue from 'nativescript-vue'
import Vuex from 'vuex'
import Modulator from './modulator'
Vue.use(Vuex)
export default new Vuex.Store({
state: {},
modules: {
users: Modulator.generateModule('users', 'user', 'users', false, false),
},
})
Leave a comment
You want to react to this content or ask something to the author? Just leave a comment here!
Note that the comments are not publicly visible, so don't worry if you don't see yours.
All the information you give will only be visible to the author. We don't share anything with anyone.