2.4.9
Linux/Opera
2.5.17
https://jsfiddle.net/mmx38qxw/6771/
Click Delete
Table has no entries.
Nothing, but uncomment
this.shipment.parcels = _.clone(this.shipment.parcels);
to make it works.
Try deleting table items like this: this.$delete(this.shipment.parcels, scope.$index);
Vue recommends to use this.$set/this.$delete when you try to update items in array, so that it could pick up the changes.
Official Doc: https://vuejs.org/v2/api/#Vue-set
Try deleting table items like this: this.$delete(this.shipment.parcels, scope.$index);
Vue recommends to use this.$set/this.$delete when you try to update items in array, so that it could pick up the changes.
Official Doc: https://vuejs.org/v2/api/#Vue-set
@darekmeco it should work for you.
Thanks @BkunS
how to use the this.$set?
how to use the this.$set?
It's attached to Vue instance, so it would be: this.$set(this.arrayInData, index, newVal). // this -> Vue
Most helpful comment
It's attached to Vue instance, so it would be: this.$set(this.arrayInData, index, newVal). // this -> Vue