Comments on: How I tackled directive’s LifeCycle in AngularJS https://filimanjaro.com/blog/2014/angular-directive-lifecycle-vs-link-compile-controller/ 👨🏻‍💻 iOS tinkerer Wed, 11 Mar 2026 10:46:25 +0000 hourly 1 https://wordpress.org/?v=4.7.26 By: angular directive controlleras - دسرا https://filimanjaro.com/blog/2014/angular-directive-lifecycle-vs-link-compile-controller/#comment-940 Sun, 25 Sep 2016 23:44:02 +0000 http://filimanjaro.com/?p=129#comment-940 […] How I tackled directive’s LifeCycle in AngularJS | Filip Zawada21.10.2014 – Proper usage of compile, link and controller may cause a headache in Angular. If you’re still struggling with – despite good answers – choosing … […]

]]>
By: Chris O'Neil https://filimanjaro.com/blog/2014/angular-directive-lifecycle-vs-link-compile-controller/#comment-901 Thu, 07 Jan 2016 18:16:48 +0000 http://filimanjaro.com/?p=129#comment-901 Excellent! The directive lifecycle was so difficult to understand until now. I have used this at work to help explain (or more often debug) directives. An interesting note is the consequence of using template vs templateURL in which templateURL has the consequence of fetching the template asynchronously which can wreak havoc on the lifecycle

]]>
By: Gianluca https://filimanjaro.com/blog/2014/angular-directive-lifecycle-vs-link-compile-controller/#comment-788 Fri, 29 May 2015 13:51:53 +0000 http://filimanjaro.com/?p=129#comment-788 Very nice diagram you have there, I wish you could provide more diagrams like that to explain mechanisms like the binding of an attribute value inside a directive.

]]>
By: Jay Kan https://filimanjaro.com/blog/2014/angular-directive-lifecycle-vs-link-compile-controller/#comment-373 Fri, 20 Feb 2015 21:13:51 +0000 http://filimanjaro.com/?p=129#comment-373 Hey Filip,

Great post on explaining the order of execution from compile, controller & link functions. The diagram you have above illustrated the lifecycle of a directive, and I was wondering during the compile phase, shouldn’t be aCompile -> bCompile -> cCompile, aController -> bController -> cController, cLink -> bLink -> aLink

]]>