filterFilter不工作在1.6角

时间:2017-02-27 06:57:56

标签: javascript angularjs

$scope.$watch('search', function (newVal, oldVal){
                $scope.filtered = filterFilter($scope.items, newVal);
                $scope.totalItems = $scope.filtered.length;
                $scope.noOfPages = Math.ceil($scope.totalItems / $scope.entryLimit);
                $scope.currentPage = 1;
            }, true);

    `ReferenceError: filterFilter is not defined
        at scripts.js:39404
        at Scope.$digest (scripts.js:17814)
        at Scope.$apply (scripts.js:18080)
        at done (scripts.js:12210)
        at completeRequest (scripts.js:12436)
        at XMLHttpRequest.requestLoaded (scripts.js:12364)`

请建议一些解决方案如何在1.6中使用filterFilter

0 个答案:

没有答案