Skip to content

Wrap application to web component #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
zvitek opened this issue Nov 9, 2020 · 2 comments
Open

Wrap application to web component #88

zvitek opened this issue Nov 9, 2020 · 2 comments

Comments

@zvitek
Copy link

zvitek commented Nov 9, 2020

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);
@luatnd
Copy link

luatnd commented Aug 3, 2021

@zvitek Hey did you do that?
Is store and router still work?

@brunogarciagonzalez
Copy link

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants