I figured it out, It looks like I can't have compile: as well as link: 
don't work together.

On Thursday, December 1, 2016 at 12:54:29 PM UTC-5, Cris wrote:
> I simply add this code to my directive, it shouldn't do anything:
>   compile: function(element, attributes){
>         return {
>             post: function(scope, element, attributes, controller, 
> transcludeFn){
>             }
> }
> However, once I add it, the methods I call from the template of the 
> directive using ng-click="method()", that are defined in "link" on the 
> scope no longer work.
> I have to move them from link to the "post:" compile block.
> Is this normal? 

You received this message because you are subscribed to the Google Groups 
"Angular" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to