I'm trying to use filter to exclude an item from a list using the filter:object method. What am I doing wrong?
<div ng-init="itemList = [
{ id: 'item1', name: 'item 1' },
{ id: 'item2', name: 'item 2' },
{ id: 'item3', name: 'item 3' } ];test='item2';">
<ul>
<li ng-repeat="item in itemList | filter:{ id: '!{{ test }}' }">{{ item.name }}</li>
</ul>
</div>
Here's the Plunker