Controllers are stored as data in each of the directive’s respective dom
nodes. They are accessed by using the .controller('directiveName') method
of angular’s jqLite wrapper.
While the controller('directiveName') method will walk the tree upwards
starting at the current dom element until it finds the first instance of
the named controller, there is no standard way to do the same thing going
downwards. You can however use any other means to find the dom elements
(e.g. by using jquery to search for all children with the
directive-nameattribute), and then use the
controller('directiveName) to retrieve the controller from the dom.
--
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.