use array in custom filter
问题 I created an array that has the following format... $scope.myArr = [arg1, arg2]; Now I want to create a custom filter that will take the array as a parameter and compare to another array, for example I want to use it as so... <div class="form-container" ng-repeat="formblock in forms | filter:dateFilter(myArr)"> This way every formblock will be compared to the array, so if formblock.date has either arg1 or arg2 then these will show, otherwise hide everything else. Is this possible? 回答1: Your