Vuejs2: How to re-render array computed properties when array changed Vuejs2: How to re-render array computed properties when array changed vue.js vue.js

Vuejs2: How to re-render array computed properties when array changed


Due to limitations in JavaScript, Vue cannot detect the changes to an array like this: this.list[1] = 'vueman'

You have to use Vue.set or vm.$set as explained here to trigger state updates in the reactivity system, like follwoing:

  this.$set(this.list, 1, 'vueman')

see updated fiddler here.