vue-external-component
v1.0.1
Published
Vue.js external component import (from remote server) for distributed component management.
Downloads
28
Maintainers
Readme
Vue-External-Component
Utility library for importing external/remote Vue components. (As seen here)
Vue 3
Please use vue3-external-component
It works with Vue3 and it doesn't need to convert the component to web component.
Server setup
https://github.com/d4n5h/Vue-Component-Repository
Install:
$ npm install vue-external-component
Example:
<template>
<MyComponent/>
</template>
<script>
import externalComponent from 'vue-external-component';
const MyComponent = () => externalComponent(`http://localhost:8200/MyComponent/MyComponent.c9c0abb8e999d0e5654e.umd.min.js`);
export default {
name: `App`,
components: {
MyComponent,
},
};
</script>