You may be missing the simplest syntax, but I can't get an unequal filter to work:
I can do
filter: {property:{text:'yes'}} ,
but not
filter: {property:{text:'!yes'}} ,
which works for non-nested objects.
HTML:
<ul> <li ng-repeat="attr in attributes | filter: {property:{text:'!yes'}}"> {{attr.property.text}} </li> </ul>
JS:
$scope.attributes = [ {property: { text:'yes' }}, {property: { text:'no' }}, ];
Link Plunkr:
http://plnkr.co/edit/2mTcQijmfnqAM5vUtKsK?p=preview
source share