Skip to content

Instantly share code, notes, and snippets.

@ktquez
Last active June 17, 2020 23:07
Show Gist options
  • Save ktquez/6d369f1540b80d5e6c936c3add31c793 to your computer and use it in GitHub Desktop.
Save ktquez/6d369f1540b80d5e6c936c3add31c793 to your computer and use it in GitHub Desktop.
import VueSkipTo from './plugin'
export default VueSkipTo
export { default as SkipTo } from './VueSkipTo.vue'
import VueSkipTo from './VueSkipTo.vue'
export default function install (Vue) {
if (install.installed) return
install.installed = true
Vue.component('VueSkipTo', VueSkipTo)
}
// auto install
if (typeof window !== 'undefined' && typeof window.Vue !== 'undefined') {
window.Vue.use(install)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment