I have a factory called
app.factory('$translation', ['$http', function($http) {
return {
translate: function(input) { return input; }
}
}]);
app.filter('translate', ['$translation', function($translation) {
return function(input) {
return $translation.translate(input);
}
}]);
I keep getting:
Error: $injector:unpr
Unknown Provider $translation
How can I inject the factory into the filter?