Answer the question
In order to leave comments, you need to log in
How to change input value when using v-model on multiple input vue js?
Part of vue js code:
<input type="text" v-model="counts[item.id]" @change="changeCount(item.id, $event.target.value)">
Метод изменения vm.counts для нужного id:
changeCount(id, c){
let vm = this;
vm.counts[id] = c;
console.log(vm.counts);
},
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question