File: app/components/test-shopping-cart/store/index.js

Recommend this page to a friend!
  Classes of Sergey Beskorovayniy  >  Vuex Examples  >  app/components/test-shopping-cart/store/index.js  >  Download  
File: app/components/test-shopping-cart/store/index.js
Role: Example script
Content type: text/plain
Description: Example script
Class: Vuex Examples
Example apps using Vuex state management pattern
Author: By
Last change:
Date: 3 years ago
Size: 647 bytes


Class file image Download
], function (Vue, Vuex, actions, getters, cart, products) {


    // A Vuex instance is created by combining the modules, getters, actions,
    // and getters.
    var store = new Vuex.Store({
        actions: actions,
        getters: getters,
        modules: {
            cart: cart,
            products: products

    return store;