I think there is no way to do this. But you can get this information if you connect to $filterProvider:
.config(function($filterProvider, $provide) {
var registerFn = $filterProvider.register;
var allFilters = [];
$filterProvider.register = function(name, fn){
allFilters.push(name);
registerFn(name, fn);
}
$provide.value('filters', allFilters);
})
The value filterscan now be used in your controller by entering it:
.controller('MainCtrl', function(filters){
console.log(filters);
})
source
share