I am currently exploring the functionality of the
this.$set (also known as Vue.set)
method when updating a multidimensional array.
Take a look at this example:
new Vue({
el: '#app',
data: {
rows:[{"id": "4", "edit": "true" }, { "id": "5", "edit": "false" }]
},
....
How can I utilize $this.set
to achieve something like this:
this.rows[0].edit = false
I have tried this and it doesn't work:
this.$set(this.rows2, 0, false)
What is the correct approach to using $this.set for an array with key-value pairs?