How can I mark an element in an array as deleted and hide it by using a filter? I tried this but it doesn't work.

```
<li ng-repeat="user in preferences.users | filter:user.removed">
  <button ng-click="user.removed=1">delete</button>
  {{user.id}}
</li>

```