Try $timeout and delay the execution of dir2 link function.
On Sat, May 10, 2014 at 3:22 PM, maxim couton <[email protected]>wrote: > > Hi, > I have an issue with angular directives: > > Let's imagine I have two directives dir1 and dir2 , I'd like to use > them like this > > > > > * <div dir1> <div dir2> </div> <div>* > > My problem is that the link function of dir2 gets executed before the > link function of di1. > > So , I wonder if it is possible to make link function of di1 runs > before dir2's link function ? > > I Tried directive priority but from what I have seen they are not > adapted to my case. > > Thanks, > > Maxim > > > -- > 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. > -- *Rishi Tandon* Pearson Learning Technology Group Mobile: (310) 926-9032 Pearson Always Learning Learn more at www.pearson.com -- 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.
