DominikSerafin/vuebar

[Feature] Import directive instead plugin

onufriievkyrylo opened this issue · 2 comments

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...
}

Why you don't do this:

// component file .vue
import Vuebar from 'vuebar';

export default {
  components: {
    Vuebar
  },
  // etc...
}

See Local Registration

@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.