UNPKG

faq-component

Version:

Simple FAQ component for VUE.JS made with Bootstrap

26 lines (20 loc) 519 B
import FaqComponent from './faq-component.vue'; function install(Vue) { if (install.installed) return; install.installed = true; Vue.component("faq-component", FaqComponent); } const plugin = { install }; let GlobalVue = null; if (typeof window !== "undefined") { GlobalVue = window.Vue; } else if (typeof global !== "undefined") { GlobalVue = global.vue; } if (GlobalVue) { GlobalVue.use(plugin); } FaqComponent.install = install; export default FaqComponent;