use variable in input value vuejs

119

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>

Comments

Submit
0 Comments