How to create an embeddable Vue.js widget with vue-custom-element
Dana Janoskova wrote a nice tutorial on how to create an embeddable Vue.js widget.
Not so long ago I got asked at my workplace to create a Vue.js application for tourists. The requirement for the application was that it was supposed to be embeddable as a widget anywhere — using only one app.js and one app.css file — that’s how I found vue-custom-element by karol-f, which allows us to render our Vue.js application as an HTML custom element like
<my-app></my-app>
.
Tutorial
This post is submitted by our members. Submit a new post.
Topics: Javascript VueJS VueJS 2