Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Vuex from 'vuex'
- import pathify from 'vuex-pathify'
- Nova.booting((Vue, router, store) => {
- Vue.use(Vuex);
- const state = {
- count: 2
- };
- let anotherStore = {
- state
- }
- store.registerModule('reports', anotherStore);
- pathify.plugin(store);
- })
- //and later in some other vue
- data() {
- return {
- count: get('reports/count'),
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement