I\'m trying to create a custom filter, but when I try to inject it into my controller, I get an \'Unknown provider\' error. I have checked and double checked all the references,
If you want to use filter inside a controller you have to inject $filter attribute to your controller and can access it like
$filter
$filter('filtername');
You can use like
function myCtrl($scope, $filter) { $filter('filtername')(arg1,arg2); }