• +91 9723535972
  • info@interviewmaterial.com

Vue JS Interview Questions and Answers

Question - What are the array detection mutation methods?

Answer -

As the name suggests, mutation methods modifies the original array.

Below are the list of array mutation methods which trigger view updates.

  • push()
  • pop()
  • shift()
  • unshift()
  • splice()
  • sort()
  • reverse()
If you perform any of the above mutation method on the list then it triggers view update. For example, push method on array named 'items' trigger a view update,

vm.todos.push({ message: 'Baz' })

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners