I have the following setup
$scope.array =
[
{propertyA: "test",
propertyB: {
propertyC: [true, true, false]
}
},
{propertyA: "test2"},
{propertyA: "test3"}
]
and then
<div ng-repeat="item in array| filter :{propertyB: ''} :true">
{{item.propertyA}}
</div>
So the problem is:
this setup does not display anything
if i change to
|filter :{propertyB: '!!'} :trueit does not display anythingif i change to
|filter :{propertyB: undefined} :trueit displays everything
I can`t figure it out.
Target: I want to display the items which have the propertyB undefined and in other case the other way around.
Edit 1: If I iterate over the array with angular.equals(item.propertyB, undefined) I get false, true, true
Edit 2: jsfiddle UPDATED
Edit 3: I have updated the question