Closed
Description
What problem does this feature solve?
when we want to do something like hide / show password input we should add state called "IsVisible" in our data but actually this data is specific for this input not relate to our app so we shoud put it on a scope of the element to prevent our data's pollution
What does the proposed API look like?
<div class="field" v-data="{ isVisible : false }">
<button @click="isVisible = !isVisible">isVisible ? 'hide' : 'show'</button>
<input :type=" isVisible ? 'text' : 'password' " />
</div>
Metadata
Metadata
Assignees
Labels
No labels