If the name of the filter is static, you can just inject the name of the filter with "Filter" appended to it into your component's controller function, like this:
angular.module('ngApp').component('myComponent', {
bindings: {
dynamicFilter: '@'
},
controller: [
'staticFilterFilter',
function(staticFilterFilter) {
this.valueSetByStaticFilter = staticFilterFilter('x');
}]
});
Is there a way to pass the name of a filter into an angularjs version 1.6 component as bound as argument/attribute string using '@' and then be able to get that filter by name and use it inside of the controller of that component?