[Vuejs]-Vue Does not change array data from expansion panel and activate loader

0👍

VueJS cannot detect changes in your array if you’re setting/updating a value by index, as mentioned in their documentation: https://v2.vuejs.org/v2/guide/reactivity.html#For-Arrays

So, use Vue.set or this.$set instead, ie:

this.$set(this.loader, i, true);

0👍

You passed wrong parameter to the function. It should have been

<v-btn @click="getAddress(i);"

Leave a comment