Skip to content

Instantly share code, notes, and snippets.

@c0depanda
Last active February 19, 2019 21:31
Show Gist options
  • Save c0depanda/9d8439295ddef73e597b98fc0d1df565 to your computer and use it in GitHub Desktop.
Save c0depanda/9d8439295ddef73e597b98fc0d1df565 to your computer and use it in GitHub Desktop.
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