I have a list of objects within a v-for loop:
<div v-for="(element, index) in myArray">
<child @event-fired="handleEvent(index, dataFromChild)"></child>
</div>
Now I want once the event is fired from the child component, on my handleEvent method, pass the index and the data from the child component.
But now, if I do something like stated above,I get an error on console stating, property or method dataFromChild is not defined....
@event-fired