Hello,

I was wondering if there is any way in Angular, with the dependency 
injection to retrieve all services of a given type (none of them if none 
defined).
For example an application having a dashboard, could let other modules 
define "widgets" and then wouldn't have know which widgets are or are not 
defined in which modules.

So instead of receiving a single service as the argument, you would receive 
an array of all matching services. The difference with using $injector and 
checking if the injector has each module is that here, we want our module 
to be completely independent of the other ones and be able to load an 
unknown number of modules that it can use.

I don't think there is anything like this possible in Angular right now or 
did I miss something?

An example of how this could work is there: 
https://gist.github.com/khepin/8216893

Cheers, and happy new year
Seb

-- 
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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to