Hi Parvathy, Ah, now I see your issue. I dug into the relevant source of Angular for this. Actually it is quite simple, if the function you are calling exists on the isolate scope, it is called there. Only when it doe not exists it is executed in its parent. Not sure if that's a feature or a bug tough :) So when you put in the reference, it used its local click object (that does not have a handler, so it does nothing!) Yet another reason to switch to controllers and controllerAs. (sample: http://plnkr.co/edit/gK29jFHfRuvxwKOUHMkV?p=preview)
Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
