1
I have a v-for
<div v-for="(m, ind) in arrayMeses" :key="ind" v-if="m" class="mes">
<table border="1" width="100%">
<tbody>
<tr class="mes_title">
<td colspan="7" class="mes_title font-14">
{{ m }} - {{ testeComputed(ind) }}
</td>
</tr>
</tboddy>
</table>
I want to run a method on each interaction When the data is changed run as well
I tried to
computed: {
testeComputed: function(ind) {
console.log('m',ind)
return 'teste' + ind
},
},
You are returning an object with all page elements I would like to receive the index or month name
Do you have a loop in a div with a single row table of a single column? Better study a little more HTML and then go to Vue.js
– Costamilam
@Guilhermecostamilam All right? It’s just a piece of code. It’s working and assembling the table as needed. My problem is when to run Computed. I can run, but I cannot pass the parameter. If I do a console.log in the parameter appears the object of all page components
– Luis Souza