I've not needed to fiddle with that all that much, but my understanding is that the inner-directives should all be instantiated and linked before the outer-directive's link function.
http://www.bennadel.com/blog/2603-directive-controller-and-link-timing-in-angularjs.htm Theoretically, you ought to be able to do that call on the link function of the outer-directive (but not the controller function). e On Mon, Aug 18, 2014 at 9:17 AM, alycklama <[email protected]> wrote: > I'm having some difficulties grasping some basic angular flows and > techniques. Is it possible for the outer-directive to "know" when the > inner-directives have been finished? > > <outer-directive> > <inner-directive></inner-directive> > <inner-directive></inner-directive> > <inner-directive></inner-directive> > </outer-directive> > > I'm asking this because I noticed it's relatively slow to call > "element.tooltip()" on a large set of items individually. It's a lot faster > if I call $("a.tooltips").tooltip() for all of the tooltips at once. I've > looked into "postLink", but at "postLink" of the outer-directive, the > inner-directive has not yet been resolved. > > Could someone push me into the right direction? > > -- > 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. > -- 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.
