Skip to content

Instantly share code, notes, and snippets.

@championswimmer
Created July 14, 2018 00:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save championswimmer/088b14974746fdc04801ccd5a9081349 to your computer and use it in GitHub Desktop.
Save championswimmer/088b14974746fdc04801ccd5a9081349 to your computer and use it in GitHub Desktop.
const moduleA = {
state: { ... },
mutations: { ... },
actions: { ... },
getters: { ... }
}
const moduleB = {
state: { ... },
mutations: { ... },
actions: { ... }
}
const store = new Vuex.Store({
modules: {
a: moduleA,
b: moduleB
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment