I have the following setting
$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:
this setting does not display anything
If I go to |filter :{propertyB: '!!'} :true , it will not display anything
if I change to |filter :{propertyB: undefined} :true , it displays everything
I canβt figure it out.
Purpose: I want to display elements that have propertyB undefined, and in the opposite case, the opposite.
Edit 1: if I angular.equals(item.propertyB, undefined) over an array using angular.equals(item.propertyB, undefined) , I get false, true, true
Edit 2: jsfiddle UPDATED
Edit 3: I updated the question
source share