0 votes
in Angular by
What is the difference between a link and compile in Angular?

1 Answer

0 votes
by

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.

Related questions

0 votes
asked Apr 30, 2021 in JAVA by rajeshsharma
0 votes
asked Jan 6, 2020 in Angular by sharadyadav1986
...