Seems like a very basic question but I can't get the syntax right..
<li class="list-group-item" ng-repeat="question in newSection.Questions | filter:Id != '-1'; " ng-mouseenter="hover = true" ng-mouseleave="hover = false">
<div href="#" editable-text="question.Text">{{question.Text}}</div>
</li>
All I want is to show all the questions where id is NOT -1. What am I doing wrong. Thanks!
The syntax is just a little off, try:
See a little JSFiddle: http://jsfiddle.net/U3pVM/3845/
Edit:
Example with variables:
Although @Michael Rose answer works for this case, i don't think it will if you try to filter not equal some object/variable
In that case you could use:
JS:
HTML:
An even more nested case:
JS:
HTML