Wrap application to web component
zvitek opened this issue · 2 comments
zvitek commented
Hello, it's possible to wrap all application to web component?
I prepare a small widgets witch you can insert to own page. But there is a problem with client styles which can broke my widget.
Therefor I would like to wrap the widget to web component and isolate it.
Thank you for a tips
new Vue({
i18n,
store: $store,
router: initRouter(base, mode),
render: h => h(Widget)
}).$mount(targetElementName);
brunogarciagonzalez commented
Check this out for Vue2, it may work:
https://itnext.io/vuidget-how-to-create-an-embeddable-vue-js-widget-with-vue-custom-element-674bdcb96b97
https://vuidget.danajanoskova.sk/