Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View c0depanda's full-sized avatar

Nosa Obaseki c0depanda

View GitHub Profile
// import Vue
import Vue from 'vue';
export default {
state: {
cart: ["bread", "rice", "beans", "turkey"]
},
getters: {
// Fetch the total number of items in the cart
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)