84669 personnes étudient
152542 personnes étudient
20005 personnes étudient
5487 personnes étudient
7821 personnes étudient
359900 personnes étudient
3350 personnes étudient
180660 personnes étudient
48569 personnes étudient
18603 personnes étudient
40936 personnes étudient
1549 personnes étudient
1183 personnes étudient
32909 personnes étudient
在controller中写currency过滤器是
$filter('currency')(12233243)
那如果要实现下面这个过滤器该怎么写呢?
<tr ng-repeat="product in products|filter:{brand: brandName}">
Je l'ai trouvé.
$scope.filteredProducts = $filter('filter')($scope.products, $scope.brand);
angular.module('yourApp').filter('brand', function(){ return function(input){ // 逻辑 } })
Je l'ai trouvé.