angularjs7 years ago
AngularJs Directive - compile and link function
Compile function does the one-time activity and could be used to do some initialization. Link function is used to perform DOM manipulation and copy content into the DOM from the scope.