I'm looping through a list of songs coming from a database with a button that deletes the song targetted
<div v-for="(song, index) of songs" :key="index">
...
...
<button @click="deleteSong(song._id)">Delete</button>
</div>
then in the method
deleteSong(id) {
axios.delete("/api/songs/" + id)
}
What I also want is to get the target event object in order to instantly delete the row without having to refresh the page
I tried @click="deleteSong(e, song._id)" and some other things but I always getundefined, any idea how to do that?