Created
August 10, 2020 18:52
-
-
Save simonjcarr/64dfb211a118cd9932d142d9f01da467 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Vue from "vue"; | |
| import Vuex from "vuex"; | |
| import Todo from './todo' //Import the todo module | |
| import createPersistedState from 'vuex-persistedstate' | |
| Vue.use(Vuex); | |
| export default new Vuex.Store({ | |
| state: {}, | |
| mutations: {}, | |
| actions: {}, | |
| modules: { | |
| Todo //Reference the Todo module | |
| }, | |
| plugins: [createPersistedState()] | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment