Writing currency filter in controller is
$filter('currency')(12233243)
How to write the following filter if you want to implement it?
<tr ng-repeat="product in products|filter:{brand: brandName}">
I've found it.
$scope.filteredProducts = $filter('filter')($scope.products, $scope.brand);
angular.module('yourApp').filter('brand', function(){ return function(input){ // 逻辑 } })
I've found it.