Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

use variable in input value vuejs

<!-- v-model should do the trick -->

<ul>
    <li v-for="variable in variables">
        <input type="text" v-model="variable.value" />
        <button @click="updateVariable(variable.id, variable.value)">Update</button>
    </li>
</ul>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #variable #input #vuejs
ADD COMMENT
Topic
Name
6+5 =