Created
February 22, 2018 21:25
-
-
Save danielschmitz/fc68a37c8c6ecb8ccea987d909730fe6 to your computer and use it in GitHub Desktop.
Inclusao do store no data global do vue
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
// The Vue build version to load with the `import` command | |
// (runtime-only or standalone) has been set in webpack.base.conf with an alias. | |
import Vue from 'vue' | |
import App from './App' | |
import router from './router' | |
import VueStash from './vue-stash' | |
import store from './store' | |
Vue.use(VueStash) | |
Vue.config.productionTip = false | |
/* eslint-disable no-new */ | |
new Vue({ | |
data: { | |
store | |
}, | |
el: '#app', | |
router, | |
components: { App }, | |
template: '<App/>' | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment