[Vuejs]-VUEJS – Best way to get this "filled in" form to v-model?

0👍

Does using indexes work for you?

<v-row class="d-block d-md-flex">
    <v-col v-for="(planning, index) in module.plannings" :key="planning.id">
        <v-textarea 
           outlined hide-details dense
           :label="planning.name"
           @input='(evt) => { updateItem(index, evt.target.value) }' 
           :value="planning.text"></v-textarea>
    </v-col>
</v-row>
//
...
methods: {
    updateItem(index, value) { this.module.plannings[index].text = value; }
}

Leave a comment