Hi Al,

There is a difference on how ‘=’ and ‘@’ work. The ‘=’ takes the 
dom-string, and parses that against the parent scope. This is like writing 
the following in your link function scope.$parent['monitor'] (don’t do 
that!) What the ‘@’ is doing is something different. it interpolates the 
dom-string. that means that it is using a different interpreter, and uses 
the string as a template, where you can use one or more {{}}.

in your case, if you would like to use the ‘@’ you have to put this in your 
template:

<div watch-man="{{variable}}"></div>

Does that clarify it a bit for you?
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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to