In Angular, I have an array like this:
$scope.items =["blue","red","pink","yellow"];
And another object (that I use for filtering)
$scope.filter={"color":{"blue":true, "pink":true},"shape":{"square":true}};
I would like to do a ng-if, so that
<ul>
    <li ng-repeat="n in items" ng-if="n in filter.color">
    </li>
</ul>
The ng-repeat would just display the elements in the $scope.items that exist in the $scope.filter
So, in other words, it would just display blue and pink
Thanks in advance!
$scope.filter's content? you only have one color, how would it be if they were two?