Advertisement

Advertisement banner
EducationExplain what the link function is and ho...
F

| Posted on August 23, 2019 | education

Explain what the link function is and how it differs from compile

1 Answers
J

@jacksherom6870 | Posted on August 23, 2019

The link function combines the directives with a scope to produce a live view.
The link function is responsible for instance DOM manipulation and for registering DOM listeners.
The compile function is responsible for template DOM manipulation as well as the collection of all the directives.
0 Comments