Skip to content

d4n5h/Vue-External-Component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published