Created
June 18, 2021 11:10
-
-
Save aptiko/21fa6dc8341266d97d080891b8b7bcd3 to your computer and use it in GitHub Desktop.
Vue plugin essentials
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from 'vue' | |
const myVuePlugin = { | |
install(Vue, options) { | |
Vue.prototype.$hello = 'world' | |
}, | |
} | |
Vue.use(myVuePlugin) | |
myVueInstance = new Vue() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment