(Vue 2 only) Wrap a Vue component as a web component / custom element.
by vuejsJavaScript
Last 12 weeks · 0 commits
1 of 6 standards met
Repository: vuejs/vue-web-component-wrapper. Description: (Vue 2 only) Wrap a Vue component as a web component / custom element. Stars: 1065, Forks: 100. Primary language: JavaScript. Languages: JavaScript (100%). Latest release: v1.3.0 (5y ago). Open PRs: 28, open issues: 54. Last activity: 2y ago. Community health: 25%. Top contributors: yyx990803, haoqunjiang, ankurk91, zoeyfyi, potato4d, sylvainpolletvillard.
I am trying to pass a list of items to a web-component but internally it seems to have converted it to a String... ?? So for example in the code below I wish to pass two properties: a 'msg' (String) and an 'items' (Array). Unfortunately when I try to access the props inside the VueWebComponent code I find: msg = "Hello" items = "[object Object],[object Object]"** Any help much appreciated! This is the code for the VueWebComponent.vue
I'm working in a new project using Vue CLI 3 and I'm having an issue when I try to load a font in a web component. I have prepared this basic example. And this is the code generated running npm serve: !image As you can see in the image above, it generates an tag with this content: How can I solve this?