Hi Aaron,

When you have injected all the pipes available into an controller, and 
assigned all of them to 'this', you can.

have a look at this:

class test {
    constructor(...injectables) {
       injectables.forEach((injectable) => this[injectable.name]=injectable)
    }
    read(name) {
        return this[name];
    }
}

function sample1() { return "I'm sample1"}
function sample2() { return "I'm sample2"}
function sample3() { return "I'm sample3"}

let something = new test(sample1, sample2, sample3) //simulating injection

let result = something.read('sample1')
result()
something.read('sample3')();

Is this enough for you to implement this?

Regards
Sander

-- 
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.

Reply via email to