[Vuejs]-Vue Js List Rendering Change Array With Splice

2👍

Vue doesn’t trigger a change for a modified array value, but does for splice

https://v2.vuejs.org/v2/guide/list.html#Mutation-Methods

Vue will automatically trigger for the following array functions:

  • push()
  • pop()
  • shift()
  • unshift()
  • splice()
  • sort()
  • reverse()

Leave a comment