Skip to content

Instantly share code, notes, and snippets.

@lakshyabatman
Last active May 10, 2020 20:44
Show Gist options
  • Save lakshyabatman/89401d2406d84b3faba4e89fdcb8a374 to your computer and use it in GitHub Desktop.
Save lakshyabatman/89401d2406d84b3faba4e89fdcb8a374 to your computer and use it in GitHub Desktop.
Vue basic store
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