Best way to do this is to use a function: <div ng-repeat="product in products | filter: myFilter"> $scope.myFilter = function (item) { return item === 'red' ...
確定! 回上一頁