I have the following array in VUE:
acoes : [
{ name: 'Quero Vender', id:'quero-vender', active: false },
{ name: 'Quero Comprar', id:'quero-comprar', active: true },
] ,
I'm passing the array id field to a function I need to set the active field to true from the record where the ID is 'want-to-buy', how can I do it?