app.controller('myCtrl',function($scope,$filter){ ...
$filter('过滤器名称')(需要过滤的对象,参数1,参数2,...);
... });
$filter('currency')($scope.amount,'$USD');
app.controller('myCtrl',function($scope,$filter){ ...
$filter('过滤器名称')(需要过滤的对象,参数1,参数2,...);
... });
$filter('currency')($scope.amount,'$USD');
转载于:https://www.cnblogs.com/Denny_Yang/p/4213194.html