Each space
is an object with a boolean attribute called open
, and I'm putting them into two lists. In this case, I have two of them, one is true
and one is false
. When the list renders at all, both items are in the open list. Here's what I've tried:
ng-repeat="space in ctrl.manager.spaces | filter:open"
ng-repeat="space in ctrl.manager.spaces | filter:!open"
and
ng-repeat="space in ctrl.manager.spaces | filter:open:true"
ng-repeat="space in ctrl.manager.spaces | filter:open:false"
and
ng-repeat="space in ctrl.manager.spaces | filter:{'open':true}"
ng-repeat="space in ctrl.manager.spaces | filter:{'open':false}"
{{space.open}}
confirms that one is true
and one is false
.
space.open
, it complains thatSpace
doesn't have aspace
method, but as in the original post,'open'
doesn't work. – Derecho Oct 31 '14 at 9:20