[Vuejs]-Vuejs not working with dynamic array, works perfectly with static array

0👍

If I face that situation then I check if I have created that property as reactive.
Means I have added v-model on it or not.

Other way is to add it in watch propery as shown below

watch:{
    //just write name of the data propery and make it function
    picutres(){}
    //that's it
}

Now it will listen for the changes.

If you still somehow cannot fix that problem then other solution it to use custom events or a function

You will call function or trigger an event whenever you change your pictures array.
Then in function or event you can update your pictures array

Leave a comment