What is the difference between link and compile in Angular.js?

Submitted by: Muhammad
☛ Compile function is used for template DOM Manipulation and to collect all the directives.
☛ Link function is used for registering DOM listeners as well as instance DOM manipulation and is executed once the template has been cloned.
Submitted by: Muhammad

Read Online AngularJS Developer Job Interview Questions And Answers