Controller中使用过滤器
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');