Hi,

Is there a way to programmatically iterate over name of directives in a 
module?
I am trying to scan my whole app for certain things, as I'm creating a 
plugin framework that uses [naming] convention over configuration.
I'm able to navigate over all the modules, but I don't see the "name" of 
the modules directives.

angular.forEach(myAppModule.requires, function(requiredModule) {
     if ( isInterestingModule(angular.module(requiredModule).name) ) {
              angular.module(requiredModule).directive     

Here the directive for the module is some nasty complex object contained 
all the directive logic somehow I guess. I probably shouldn't even be using 
it, its kind of core angular stuff.


Thanks for any help,
Brian

-- 
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/d/optout.

Reply via email to