What is the difference between a link and compile in AngularJS ?

devquora
devquora

Posted On: Feb 22, 2018

 

Compile function: To template DOM manipulation and to gather all the directives, the compile function is used.
Link function: To register DOM listeners as well as for the instance DOM manipulation, the Link function is used.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions