I have nested Angular directives like this:
<div d1>
<div d2></div>
</div>
It compiles as expected like :
- pre d1
- pre d2
- post d2
- post d1
Unfortunately, if I add a templateUrl reference to d2, the order of compilation changes to:
- pre d1
- post d1
- pre d2
- post d2
Why is it like this ?
Is there a way to use the first order when using templates ?
Thanks a lot in advance