0 votes
in Angular by (6.0k points)
What is the difference between a link and compile in Angular?

1 Answer

0 votes
by (30.4k points)

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.

Click here to read more about Angular JS
Click here to read more about Insurance

Related questions

+1 vote
asked Jan 15, 2020 in Angular by rahuljain1 (6.0k points)
0 votes
asked Nov 12, 2019 in DevOps by Robindeniel (19.7k points)
...