Make Vue plugin
simshaun opened this issue · 1 comments
simshaun commented
It'd be nice if all the directives could be made available globally by calling Vue.use(VueFocus)
.
simplesmiler commented
Sorry for taking so long to response.
I don't really like the plugin style, because it promotes implicit dependencies and may cause conflicts.
If you really want to make things global, you can use Vue.mixin
:
var VueFocus = require('vue-focus');
Vue.mixin(VueFocus.mixin);