-1
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 am passing the array id field to a function I need to set the active field to true of the record where the ID is 'want-to-buy', as I can do?
Your question is good but you need more details. Could I provide? can I help you...
– Marconi
Without enough information you can’t know what you need. That other question of yours already solves your problem, but I believe it is a XY problem. What you want to do and what you’ve tried?
– fernandosavio