[Feature] Import directive instead plugin
onufriievkyrylo opened this issue · 2 comments
onufriievkyrylo commented
I want to have a posibility to import derective itself to use it localy in component, instead of use it in vue globaly as a plugin.
// component file .vue
import Vuebar from 'vuebar';
export default {
directives: {
Vuebar
},
// etc...
}
jonagoldman commented
Why you don't do this:
// component file .vue
import Vuebar from 'vuebar';
export default {
components: {
Vuebar
},
// etc...
}
DominikSerafin commented
@onufriievkyrylo I never used local directives but this looks like something I would want Vuebar to work with. I'll look into it for Vuebar 2.0.