You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The alternative is to use w-extend, which looks like this:
<some-component w-extend onEvent="handleEvent"/>
This actually extends the component and merges it with your component. They share state, etc.
It's a bit confusing and we don't have any documentation for it, but the code lives here and it complicates things when rendering.
We want to add support for the first thing:
<some-component w-bind onEvent="handleEvent"/>
This means allowing a single dom element to be bound to multiple widgets.
The text was updated successfully, but these errors were encountered:
patrick-steele-idem
changed the title
Remove need for w-extend
Deprecate w-extend and allow multiple widgets to be bound to the same HTML element
Nov 11, 2016
There is the limitation that a component cannot
w-bind
to another component.The following is not currently allowed:
You can however wrap it, but who wants that extra div?
The alternative is to use
w-extend
, which looks like this:This actually extends the component and merges it with your component. They share state, etc.
It's a bit confusing and we don't have any documentation for it, but the code lives here and it complicates things when rendering.
We want to add support for the first thing:
This means allowing a single dom element to be bound to multiple widgets.
The text was updated successfully, but these errors were encountered: