Dave--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular?hl=en-US.
Hi Dave!The `ng-click` value is an expression, so everything occurs as javascript and from within the context of the scope in which the element resides. You don't want to pass in a string (interpolated or otherwise) but rather a variable.I modified your directive with explanations for each of the cases you listed as well as created the working one. http://jsfiddle.net/joshdmiller/psrhn/7/Hope this helps!Josh
No ng-click is not watching the expression string itself for changes. It takes a copy of the expression string at compile time and watches the evaluation of that expression.
Pete
...from my mobile.