[Vuejs]-How to watch for changes in objects inside javascript array?

1👍

Use deep to watch object changes:

watch{
  item: {
     handler(newValue, oldValue){
       // something
     },
     deep: true
  }
}
👤samayo

1👍

If you use Vue.set() then the props of each item-object are reactive too.

👤Thomas

Leave a comment