Answer the question
In order to leave comments, you need to log in
How to update v-model="value" if value is an array?
I made my own component. The input value is an array. I specify v-model="tags" where
data: function() {
return {
tags : ['1','2','3']
}
}
onInput: function(newValue) {
console.log("newValue", newValue);
this.tags = newValue;
}
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