Hi Jason,
> 1. when and where the $watch is created.
>
> Given a few exceptions, for every expression that you use {{ someVar }},
and for all directives that have some condition like
ng-show/hide/if/repeat. Basicly every point where your model touches the
DOM gets a watch.
>
> 1. what has been stored in $watch, is it the whole DOM?
>
> No, there are basically 2 functions in a watch. one function to monitor
your model, and the function that handles the detected change. Only those
functions are in the watch.
and only the first one is of real influence on the speed of your app. as it
evaluated on every digest cycle, that one needs to be a simple/quick as
possible.
>
> 1. Also when $watch is created angular put it in a $watch list, so is
> there only one list for an application or one per controller?
>
> To be short, one list for the application, but this is a bit of an
oversimplification!
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.