Directive Compilation in AngularJS – step-by-step

One of AngularJS core features is the possibility to teach the browser new HTML syntax. Its built-in HTML compiler allows developer to define new behavior for any HTML elements or their attributes. Creators have called these behavior extensions directives. To make better use of directives API and give them super powers we need to get an in-depth understanding of the compilation mechanism.

Continue reading