[Vuejs]-How to change the cursor to progress when the image is loading and change it to pointer when the image is fully loaded in vuejs?

0👍

I think it’s not working because, the array is to reactive because to has zero elements in the beginning.
You have to populate the imageLoaded array with false and then change the item at the required index to true when image is loaded

something like.

data() {
  return {
    imageLoaded: [...options.map(op => false)]
  };
}

Leave a comment