Compile function is used for template DOM Manipulation and to collect all the directives.
Link function is used for registering DOM
eners as well as instance DOM manipulation and is executed once the template has been cloned.