Answer the question
In order to leave comments, you need to log in
How to output an array of inputs in a Vue loop and bind them dynamically to this array?
There is a code:
<div v-for="(item, index) in content" :key="index">
<input type="text" v-model="content[index]" class="u-full-width">
</div>
watch: {
content () {
console.log(this.content)
}
Answer the question
In order to leave comments, you need to log in
https://en.vuejs.org/v2/api/index.html#watch
Look at the deep option .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question