124
rated 0 times
[
131]
[
7]
/ answers: 1 / hits: 18097
/ 11 Years ago, wed, april 17, 2013, 12:00:00
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()
More From » angularjs