Loading…

What are the differences between link and compile?

The Compile function is used for templating DOM Manipulation and for collecting the directives. The Link function is used for registering the DOM listeners as well as instance the DOM manipulation. This function gets executed after the template has been cloned.

Suggest An Answer

No suggestions avaliable!

Latest post from Angularjs Interview Questions

Ask Question