v-model support for web components (stenciljs)
See original GitHub issueWhat problem does this feature solve?
V-model support for web components(tested with web component implemented with ionic’s stenciljs compiler).
Does not work:
<ui-input v-model="mySelect" />
Works:
<ui-input :value="mySelect" @input="mySelect = $event.target.value" />
Can this be enabled to support ignored elements as well that have been declared with:
Vue.config.ignoredElements = [/^ui-/];
What does the proposed API look like?
Declaration
Vue.config.ignoredElements = [/^ui-/];
Usage
<ui-input v-model="mySelect" />
Issue Analytics
- State:
- Created 6 years ago
- Reactions:33
- Comments:18 (1 by maintainers)
Top Results From Across the Web
Vue - Stencil.js
Supports : Vue 3 • TypeScript 4.0+ • Stencil v2.9.0+. Stencil can generate Vue ... Optionally, form control web components can be used...
Read more >How to Create Custom v-model for Web Components
Today, I'm focusing on a Vue example with a Web Component input element. Fortunately, Vue fully supports Web Components according to custom- ...
Read more >Using Stenciljs with Vue. - Medium
js ,Stencil. Find more details about them here. Browser Support. Web components api specs are supported natively by Chrome, Firefox, Safari, ...
Read more >Creating Reusable Web Components with Stencil.js
Web components are a essentially the future of web development. They are basically HTML tags that will work across modern browsers, and can....
Read more >All the Ways to Make a Web Component - Feb 2022 Update
In this new release, we fixed performance computation support for librairies missing from the previous editions: you can now compare both sizes ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I really like the idea of
v-model:eventName
, that would definitely help us out. We’ve created a series of form web components that have their own APIs that work fine in Angular and React, but this issue is hampering out adoption in Vue. Would love to see some input from maintainers on this and would be interested in helping implement if needed.Has anyone began to investigate this. This has had a huge impact on us in moving forward with using Vue. It also appears that Vue is the only framework where we are seeing binding issues with our web components.