vuetube
Version:
A fast, lightweight, lazyload vue component acting as a thin layer over the YouTube IFrame Player API which renders fast
25 lines (20 loc) • 501 B
text/typescript
import _Vue, { PluginFunction } from 'vue';
/**
* Import vue components
*/
import { VueTube } from '@/components';
/**
* Install function executed by Vue.use()
*/
const install: PluginFunction<never> = function installVueTube(Vue: typeof _Vue) {
Vue.component(VueTube.name, VueTube);
};
/**
* Create module definition for Vue.use()
*/
export default install;
/**
* To allow individual component use, export components
* each can be registered via Vue.component()
*/
export { VueTube };