I currently have a code snippet that looks like the following:
arr = [
{ val1: a, val2: b },
{ val1: a, val2: b },
{ val1: a, val2: b }
]
<div v-for="single in arr">
<button v-on:click="addSome"></button>
</div>
When I click on a button within the loop, I would like to add 'val3': 'c' to the corresponding object. I have tried using $add, $set, passing the current 'single', and $index without success. What is the correct method to add or edit a specific object from the loop? Apologies for any language barriers, thank you for your help!