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 for an instance the DOM manipulation. This function gets executed after the template has been cloned.

BY Best Interview Question ON 01 Apr 2020