Remember
Register
1
new
Chill
new
Puzzles
new
GK
new
Sports
new
Business
Home
Questions
MCQs
Unanswered
Tags
Users
Ask a Question
Write Article
Articles
Connect to us
Explain what is the difference between link and compile in Angular.js?
0
votes
448
views
Explain what is the difference between link and compile in Angular.js?
angular.js
interview questions
posted
Dec 15, 2017
by
Latha
Share this question
Your comment on this post:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
1 Answer
0
votes
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.
answer
Dec 15, 2017
by
Shivaranjini
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
Your answer
Preview
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
Similar Questions
0
votes
Explain what is Angular Expression and key difference between angular expressions and JavaScript expressions?
0
votes
What are compile & link options in Custom Directives?
0
votes
Explain what Angular JS routes does ?
0
votes
What is the difference between component and controller in angular.js?
+2
votes
What is the difference between one-way binding and two-way binding in Angular js?
...