Skip to content
This repository has been archived by the owner on Jul 10, 2022. It is now read-only.

[Feature] Import directive instead plugin #66

Open
onufriievkyrylo opened this issue Dec 21, 2018 · 2 comments
Open

[Feature] Import directive instead plugin #66

onufriievkyrylo opened this issue Dec 21, 2018 · 2 comments

Comments

@onufriievkyrylo
Copy link

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
Copy link

jonagoldman commented Dec 22, 2018

Why you don't do this:

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

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

See Local Registration

@DominikSerafin
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants