Closed richardshergold closed 3 years ago
Can You please prepare CodeSandbox? I've checked and it's working as intended? https://codesandbox.io/s/vue-custom-element-forked-p8dnx?file=/public/index.html
Ah, ok I looked at yours and if I do this:
Vue.customElement("nextgen-schools", App);
then it works fine. But the only way I managed to get my router working with my widget was to do this:
Vue.customElement('schools-widget', {
router,
render: h => h(App)
});
And if I do that then the prop does not come through?
Hi, it's working like that - https://codesandbox.io/s/vue-custom-element-forked-s2box?file=/src/main.js
working now - thanks!
I have my widget working ok and am able to embed it into a non vue website (thanks for making that possible!). However, I'm having problems passing a prop into the widget.
I am passing a token prop in like this:
<schools-widget token="abc"></schools-widget>
And in the main.js file of my widget project I have this:
but the token is not coming through?
This is my App.vue file but nothing shows up for the token?
What am I doing wrong?