Is there a way to splice data starting from the back with a higher index?
When clicking on the .delete div, how can I make it so the .image-box div deletes starting from the end?
I need help implementing this feature in my code. Here is a snippet:
<div class = "image-cover">
<div class = "image-box" v-for = "(image, index) in images" :key = "image.id" >
<div class = "index">{{ index }}</div>
<img :src = "image.url" class = "previewImage"/>
</div>
</div>
<div class = "delete" @click="deleteImage" v-on:click = "delete image in here!">-</div>