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
Through an directive-argument the event to listen to/ the property to set is defined.
For example v-model:visible would listen to the input:visible event and set the visible property.
A model without any argument defaults to current behavior (@input / value).
What problem does this feature solve?
By default
v-model
binds tovalue
and@input
/@change
.In addition it would be nice to be able to replicate this shortcut to other properties/events.
Use-Case:
A pasword-input component with the ability to toggle the visibility.
v-model
.Currently one would have to listen to the event, indicating a visibility-change and set a property controlling the visibility.
What does the proposed API look like?
Through an directive-argument the event to listen to/ the property to set is defined.
For example
v-model:visible
would listen to theinput:visible
event and set thevisible
property.A model without any argument defaults to current behavior (
@input
/value
).Component
Usage
The text was updated successfully, but these errors were encountered: