Answers for "Is it possible to filter with multiple condition in angularjs?"

0

Is it possible to filter with multiple condition in angularjs?

You should create a custom filter. By evaluating multiple conditions in one filter it will gain 'performance'.

$scope.filterData = function (item) {
    return (item.SECURITYCLASS === 90 || item.SECURITYCLASS === 93);
}
<div ng-repeat="item in data | filter:filterData">
    {{::item}}
</div>
//demo
http://plnkr.co/edit/aDx3SfXaTqEqrlMxIzgd
Posted by: Guest on September-08-2021

Code answers related to "Is it possible to filter with multiple condition in angularjs?"

Code answers related to "Javascript"

Browse Popular Code Answers by Language