在controller中寫currency過濾器是
$filter('currency')(12233243)
那如果要實現下面這個過濾器該怎麼寫呢?
<tr ng-repeat="product in products|filter:{brand: brandName}">
我已經找到了。
$scope.filteredProducts = $filter('filter')($scope.products, $scope.brand);
雷雷
我已經找到了。
雷雷