How AngularJS is compiled?

Answer Posted / ramyagurrala

Compiler is an Angular service which traverses the DOM looking for attributes.
The compilation process happens in two phases.

Compile: traverse the DOM and collect all of the directives.

Link: combine the directives with a scope and produce a live view.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the core dependencies of angular 7?

399


Distinguish between angularjs and javascript expressions.

432


How to setup angular 2 in visual studio 2017 mvc 5 / 6?

465


How can you add an active class to a selected element in a list component?

479


How to install angular 4? Explain

429






Explain the need for di in angularjs?

431


Explain viewchild in component interaction?

445


What is angular life cycle?

403


What are guards in angular?

408


What is interpolation in angular?

436


What is the difference between angular 1 and angular 2?

414


What does transclude mean?

425


What is directive advice?

426


What is pipetransform interface?

448


Which directive lets you modify the behaviour of another directive?

562