Skip to content

Instantly share code, notes, and snippets.

@danielschmitz
Created February 22, 2018 21:25
Show Gist options
  • Save danielschmitz/fc68a37c8c6ecb8ccea987d909730fe6 to your computer and use it in GitHub Desktop.
Save danielschmitz/fc68a37c8c6ecb8ccea987d909730fe6 to your computer and use it in GitHub Desktop.
Inclusao do store no data global do vue
// 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