Your idea is not that far, but use filter:is not even required, since pipe is |already a command filter:
ng-repeat="<var> in <array> | <filterFunction>:<...arguments>"
, (. https://docs.angularjs.org/guide/filter )
ng-repeat="tax in taxClasses | filterTax: <geozoneIndex>"
filterTax. :.
, :
app.module(...).filter('filterTax', function(/* injected services */) {
return function (/* arguments */ input, geozoneIndex) {
}
});
:
ng-repeat="tax in filterTaxes(taxClasses, <geozoneIndex>)"
$scope.filterTaxes = function(taxClasses, geozoneIndex) {
return taxClasses.filter(function(taxClass) {
return ;
});
};
, geozoneIndex , , .
, filterTax , , , .