project with vue-cli in this case tough.
Just for my understanding, I've looked into the documentation for the v-for directive (https://vuejs.org/v2/api/#v-for)
The default behavior of v-for will try to patch the elements in-place without moving them. To force it to reorder elements, you need to provide an ordering hint with the key special attribute:
That's why I have to use the key attribute right?
exactly - the :key attribute will force re-render the entire row - which it should when the data changes
Обсуждают сегодня