Vue.jsThe array change detection caveats


Introduction

When you try to set a value of an item at a particular index of an array initialized in the data option, vue can't detect the change and does not trigger an update to the state. In order to overcome this caveat you should either use vue's Vue.$set or use Array.prototype.splice method