Skip to content

Instantly share code, notes, and snippets.

@c0depanda
Last active Feb 19, 2019
Embed
What would you like to do?
import Vue from 'vue'
import Vuex from 'vuex'
import state from './state'
import getters from './getters'
import mutations from './mutations'
import actions from './actions'
import cart from './modules/cart'
Vue.use(Vuex)
export default new Vuex.Store({
state,
getters,
mutations,
actions,
modules: {
cart
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment