How can I update the value of v-model DataJournals.Description
in a looping data when a button is clicked?
This is what I have attempted:
template
<tr v-for="(DataJournals, index) in DataJournal" :key="DataJournals.value">
<td>
<textarea class="form-control" id="termsofdelivery" v-model="DataJournals.Description" rows="3" v-bind:disabled="DataJournals.SignSave == 1 ? true : false"></textarea>
</td>
<a href="javascript:;" v-on:click="greet(DataJournals.id, index)" class="btn btn-sm btn-primary">Speech</a>
</tr>
My method
greet: function (event, id, index) {
this.DataJournal.Description = 'asddsaasddsaasddsa'
}
Although console.log shows that it is working, the value is not being pushed to the v-model.