[Vuejs]-Vue.js Bootstrap table – pass data between Parent and Child component

0πŸ‘

βœ…

In Vue 2, adding properties to an existing object wont be reactive, as Vue wont be able to properly add a getter/setter for the property.

To get around this you should use the Vue.set/this.$set method.

this.$set(this.customItems[i], 'state', this.singleRow[i])

For more information see: https://v2.vuejs.org/v2/guide/reactivity.html#For-Objects

Leave a comment