Skip to content

Instantly share code, notes, and snippets.

@dilverdev
Last active February 17, 2020 20:01
Show Gist options
  • Save dilverdev/0caf3f791f538a23bd0773dffe0a1446 to your computer and use it in GitHub Desktop.
Save dilverdev/0caf3f791f538a23bd0773dffe0a1446 to your computer and use it in GitHub Desktop.
mixin global
import Vue from 'vue'
export default {
install(Vue) {
Vue.mixin({
... metodos, computed, etc
})
}
}
import Location from '@/plugins/location.mixin'
import Vue from 'vue'
Vue.use(Location)
new Vue({
render: h => h(App)
}).$mount('#app')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment