Created
December 11, 2018 19:16
-
-
Save tygerbytes/835e5f1d892d471ecfcde2caee8aacf7 to your computer and use it in GitHub Desktop.
This file contains 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 Vuex from 'vuex'; | |
... | |
// The library I want to share amongst the components | |
import RunbyLib from './runbylib'; | |
... | |
Vue.use(Vuex); | |
const store = new Vuex.Store({ | |
state: { | |
RunbyLib, | |
}, | |
mutations: { | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment