I have updated the SO post with plunkers showing my issue : http://stackoverflow.com/questions/25596971/parent-directive-goes-through-compile-pre-and-post-before-child-directive-with : The content I added:
I have to believe that the order of compile, pre, and post linking functions is not maintained with loading templates remotely because of the async nature of it. Here is a plunker not using any templates: http://plnkr.co/edit/gEk3GjuASxrV1L6Kp6Dq?p=preview The compile, pre, and post linking functions are in the order I expect. Then I try the same thing but I have the `logCompile2` directive have a `template` property: http://plnkr.co/edit/EOYgf5z82mesixcb1LXU?p=preview Again, the compile, pre, and post linking functions are in the order I expect. Finally we have the `logCompile2` directive with a `templateUrl` properly, loading the template remotely: http://plnkr.co/edit/A55sw6YRCuhvWUi6zQ4Q?p=preview Now things are not working as expected, the root parent directive is now going through all the steps before any of the steps are executed for the child directives. The only difference I can see between this version and the other 2 is that the template is loading remotely (and I assume in a async manner). On Monday, September 1, 2014 12:52:06 AM UTC-4, Sander Elias wrote: > > Hi Ryan, >> >> > It's hard to explain this one without having a plunk. You could look into > using priority > <https://docs.angularjs.org/api/ng/service/$compile#priority>though. > > Regards > Sander > -- 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.
