Controller中使用过滤器

app.controller('myCtrl',function($scope,$filter){     ...

    $filter('过滤器名称')(需要过滤的对象,参数1,参数2,...);

    ... });

$filter('currency')($scope.amount,'$USD'); 

原文地址:https://www.cnblogs.com/Denny_Yang/p/4213194.html