How to import external Vue components from .js file via web URL?

896 views Asked by At

I want to be able to use Vue components distributed over CDN without the need to npm install them - in my single-file Vue components.

I do not understand how to import them by URL to compiled component. Example of components I want to import is https://unpkg.com/vueperslides (from https://antoniandre.github.io/vueper-slides/#installation)

As I understand there is a way to load JS file in mounted() hook or something, but I don't understand how to import exports from it after.

Answers I tried include https://markus.oberlehner.net/blog/distributed-vue-applications-loading-components-via-http/ How to add external JS scripts to VueJS Components and many others.

I am building a web app using Quasar Framowrk on Vue.js v2

0

There are 0 answers