Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export as IIFE for UNPKG #28

Open
VanishMax opened this issue Nov 17, 2020 · 0 comments
Open

Export as IIFE for UNPKG #28

VanishMax opened this issue Nov 17, 2020 · 0 comments

Comments

@VanishMax
Copy link

For now, the directive can be installed just as a directive. But it would be better to export as a Vue plugin with install function that would register a directive globally. Just like this:

export default {
  install (Vue, options) {
    Vue.directive('vue-click-outside', {
      bind () { ... all the logic here ... }
    }
  }
}

And later on, bundle for different formats. It would any person use the directive in any format they want. But for now... Looks like I have to migrate for another click-outside.

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

No branches or pull requests

1 participant