I have the following arrays:
$scope.selected_items = [ {id: "12345"}, {id: "67890"} ] $scope.list_items = [ { id: "12345", name: "first", more: "data" }, { id: "22222", name: "second", more: "data2" }, { id: "33333", name: "third", more: "data3" }, ] I am trying to list out all the items in $scope.list_items who's id is not present in $scope.selected_items. I know I have to do something with ng-if but I can't figure out what to do.
<div ng-repeat="data in list_items" ng-if="????"> {{ data.name }} </div> Could anyone help me figure out this problem?