Vue plugins adds global functionality as, global methods, directives, transitions, filters, instance methods, objects and inject some component options using mixins
Name | Description |
---|---|
Vue | Vue constructor, injected by Vue |
options | Additional options if needed |
In most cases you will need to explicitly tell Vue to use a plugin
// calls `MyPlugin.install(Vue)`
Vue.use(MyPlugin)
To pass options
Vue.use(MyPlugin, { someOption: true })