@shacker This could be a potential alternative (not tested) but will completely break in IE8.
```javascript
function removeTask(element) {
  return (element.id !== task.id);
}
$scope.tasks = $scope.tasks.filter(removeTask);
```