JavaScript ng-repeat | filter: Inline inequalities? ng-repeat filter inline

For Angular's ng-repeat, I only saw inline equality filters. However, is it possible to inline inequalities as well?

This fiddle illustrates my problem:

Equality filter works:
<div ng-controller="repeatCtrl">
   <div ng:repeat="o in list | filter: id = myPrecious.id">
       {{o.id}}: 
       <input type="checkbox" ng:model="o.checked" />
       {{o.checked}}
    </div>
</div>

<hr />

Inequality filter does not work:
<div ng-controller="repeatCtrl">
   <div ng:repeat="o in list | filter: id != myPrecious.id">
       {{o.id}}: 
       <input type="checkbox" ng:model="o.checked" />
       {{o.checked}}
    </div>
</div>

The documentation for ng-repeat leaves MUCH to be desired. Are inline inequality filters possible?

Answer:1

Yes please see here : http://jsfiddle.net/DLYys/1/

<div ng-controller="repeatCtrl">
   <div ng:repeat="o in list | filter: {id : !myPrecious.id}">
       {{o.id}}: 
       <input type="checkbox" ng:model="o.checked" />
       {{o.checked}}
    </div>
</div>
Answer:2

I cannot for the life of me figure out what is going on here. I'll open a different browser to check if what I changed works, and maybe my other browser cached something, and it will work! But then I ...

I cannot for the life of me figure out what is going on here. I'll open a different browser to check if what I changed works, and maybe my other browser cached something, and it will work! But then I ...

  1. ajax isn't working
  2. ajax is null
  3. ajax isnan
  4. ajax isnumeric
  5. ajax is not sending
  6. ajax insta
  7. isn't ajax

I am working on jquerymobiles. I have to change the order of displaying div depending on change of value in select box html <select class="sel"> <option value="1">one</option>...

I am working on jquerymobiles. I have to change the order of displaying div depending on change of value in select box html <select class="sel"> <option value="1">one</option>...

  1. possible to change the order

I am making a simple mobile webpage where I have an image with an image map over it. I want the image to change when the user touches the image, and change back when the user lifts their finger. The ...

I am making a simple mobile webpage where I have an image with an image map over it. I want the image to change when the user touches the image, and change back when the user lifts their finger. The ...

  1. html image area map
  2. html image area
  3. html image area link
  4. html image area click
  5. html image area map generator
  6. html image area coordinates
  7. html image area map coords
  8. html image area clickable
  9. html image area selection
  10. html image area tag
  11. html image map area responsive
  12. html image map area border
  13. html image map area background color
  14. html image map area link
  15. html image map area style
  16. html highlight image area
  17. html make image area clickable
  18. html image active area
  19. html image map area color
  20. html image map area hover

I thought that given an object with controller & view properties, when the controller's state changed (or an m.prop property was changed) it would rerender the template. This isn't happening in ...

I thought that given an object with controller & view properties, when the controller's state changed (or an m.prop property was changed) it would rerender the template. This isn't happening in ...