File: app/components/test-todomvc/store/index.js

Recommend this page to a friend!
  Classes of Sergey Beskorovayniy   Vuex Examples   app/components/test-todomvc/store/index.js   Download  
File: app/components/test-todomvc/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: Update of app/components/test-todomvc/store/index.js
Date: 2 years ago
Size: 463 bytes
 

Contents

Class file image Download
define([ 'vue', 'vuex', 'app/components/test-todomvc/store/mutations', 'app/components/test-todomvc/store/plugins', ], function (Vue, Vuex, mutations, plugins) { Vue.use(Vuex); // A Vuex instance is created by combining the state, mutations, actions, // and getters. var store = new Vuex.Store({ state: mutations.state, mutations: mutations.mutations, plugins: plugins }) return store; });