Dear Daniel, and list readers,
> The cost of a simple watch expression like this is minimal. The only problem 
> I see with your directive is that you should not be using isolate scope. As a 
> general rule, you should almost never use isolate scope unless you are using 
> a template.
> 
This clarifies a lot, thanks for explaining.
> In your case I would just simply do scope: false in your directive or simply 
> not include scope attribute at all. Then you just set up a simple watch on 
> the $scope (you don’t need to do $parent).
> 
i will apply your advises to the directive. This first sentence of yours should 
be put somewhere as a "sticky" it makes so much sense now that i'm thinking 
about it.

Good day!
Pierre.

-- 
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/groups/opt_out.

Reply via email to