Hi, This might be a challenging question to answer. At our company we have an extensive suite of Angular 1 components which rely on an in-house metadata framework that allows for pages to be rendered via JSON metadata served by some APIs. We are in the process of moving this to Angular 2. One requirement we have is that data can be resolved and filtered by metadata, and the core framework is extensible, meaning some consumer of the framework can add additional pipes.
So, here's the main question: is it possible to get an instance of a PipeTransform with only a string, assuming that PipeTransform has been injected as a provider in the root (app) component. Because of the flexible nature of this tool, it is not possible to require developers to explicitly inject each PipeTransform implementing class into the MetadataFilter service. It needs to be able to get a PipeTransform from the app level, given only a string. For more clarity, this is how this looked in angular 1: var filterName = 'date'; // For example var someFilter = $filter(filterName); return someFilter(someData, filterArgs); I'm looking forward to getting some feedback on this. Thanks -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
