Skip to content

Instantly share code, notes, and snippets.

@mrded
Created May 10, 2014 21:17
Show Gist options
  • Save mrded/b713713252314aba6a11 to your computer and use it in GitHub Desktop.
Save mrded/b713713252314aba6a11 to your computer and use it in GitHub Desktop.
AngularJS: Delete an item or object from an array
var array = [];
var index = $scope.array.indexOf(item);
$scope.array.splice(index, 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment