angularjs custom filter to check for values inside a data array

you have some conditions to change in the Angular.forEach take a look at the solution. ServerB shows up in both searchs var app = angular.module(‘app’, []); app.controller(‘mainController’, function($scope) { // Data object $scope.servers = [{ name: ‘ServerA’, queue: ‘111’ }, { name: ‘Server7’, queue: ‘111’ }, { name: ‘Server2’, queue: ‘456’ }, { name: ‘ServerB’, … Read more