Compile function: During compile phase Angular compiles your directive. this function is called only once for each references to the directive. Eg. You are using
Compile function: During compile phase Angular compiles your directive. this function is called only once for each references to the directive. Eg. You are using