array.$remove(reference)
-
Arguments
{Reference} reference
-
Usage
Remove an element from an array by reference and trigger view updates. This is a sugar method for first searching for the element in the array, and then if found, calling
array.splice(index, 1)
.var aardvark = vm.animals[0] vm.animals.$remove(aardvark)
-
See also: Mutation Methods
Please login to continue.