Google News
logo
Angular - Interview Questions
What is the difference between a link and compile in Angular ?
Compile : Compile function is used for template DOM Manipulation and to collect all the directives.
Link : Link function is used for registering DOM listeners as well as instance DOM manipulation and is executed once the template has been cloned.
Advertisement