kei kei - 1 year ago 90
Javascript Question

AngularJS filtering on ngRepeat on items without key

My array looks like this:


I'm trying to get it to display all the people that don't have the
Terry, Sam, and Andy

Here's what I have so far:

<span ng-repeat="user in Users | filter: {?????}">

How do I set up this filter? Can this be done without using a custom filter?

Answer Source
<span ng-repeat="user in Users | filter:filterOutNonManagers">

$scope.filterOutNonManagers = function(user) {
    return !user.IsManager;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download