Vue.js ‘$remove’ method

$remove is a handy internal method of Vue.js to remove an element in an array. This method is pretty much just calling the splice() function, but reducing the number of lines of code.

Example: https://jsfiddle.net/jpv056o2/


this.yourArrayName.$remove(elementIndex)

Advertisements