Although @Michael Rose's answer works for this case, I donโt think it would be if you try to filter non-equal any object / variable
In this case you can use:
Js
filterId = -1
HTML:
<li ng-repeat="question in newSection.Questions | filter: !{ Id: filterId}"> </li>
An even more nested case:
Js
someQuestion = { someObject: { Id: 1 } } newSection.Questions = [someQuestion]
HTML
<li ng-repeat="question in newSection.Questions | filter: !{someObject : {Id: -1} }"> </li>
Fernando Carvalhosa Jan 28 '15 at 17:16 2015-01-28 17:16
source share