InterviewSolution
Saved Bookmarks
| 1. |
What is linking function? What are post linking and pre-linking functions? |
|
Answer» Links combine the DIRECTIVES with a scope and help in producing a view. The LINK function registerS DOM listeners and for updating the DOM. It gets executed once the template is cloned. The pre-linking function gets executed before linking the child elements. Pre-linking is not safe for DOM transformation. POST linking is executed after linking the child elements. Post linking is safe for DOM transformation. Also Read: What are the new features in ANGULAR 8 |
|