What is the order of execution of directive functions? The documentation doesn't seem to address this.
Ex
- template / templateUrl (is evaluated)
- controllerFn
- compileFn
- linkFn
Answer
From answer below: http://plnkr.co/edit/79iyKSbfxgkzk2Pivuak (plunker shows nested and sibling directives)
- Template is parsed
compile()
(changes made to the template within compile are proliferated down to linking functions)controller()
preLink()
postLink()