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,
then you just need to inject it in your module and then use it like this {{ expression | filter }}
or {{ expression | filter:argument1:argument2:... }}
.
doc
inject a dependency with the name
, like this :
controller('MyController', ['filterFilter', function(filterFilter) {}]);
doc
angular.module('equiclass.controllers')
.controller('CourseCtrl', function ($scope, testFilterFilter) {
});