[Vuejs]-Delete row from Vue Js dynamic array

0👍

Ordering is not guaranteed unless you put key attribute to the for loop. So this change to your tag must solve the problem:

<tr v-for="(row, index) in rows" :key="index">

Here is more information about the attribute key: https://v2.vuejs.org/v2/guide/list.html#key

0👍

Thanks Cmertayak,

Adding :key=”index” worked and it solved my problem.

Leave a comment