compile

During the compilation phase, the framework compiles each directive such that it is available to be attached to the template. The compile function is called once, during the compilation step and might be useful to transform the template, before the link phase.

However, since it is not used very often, we will not cover it in this book. To get more information about this directive, you could go to the

AngularJS $compile
documentation at https://docs.angularjs.org/api/ng/service/$compile.
Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +