AngularJS Developer Question:
Download Questions PDF

Tell me what is the difference between link and compile in Angular.js?

Answer:

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

Download AngularJS Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Tell me what is data binding in AngularJS?Tell me the Reasons That Compel A Web Developer To Choose AngularJS For His Web Development Project?