>
> Thanks. But I was under the assumption that each controller will have a 
> separate scope. I'm not using nested controllers. 
>
This is correct, each controller has its own scope. Both inherit from 
$rootScope.

 

> If this is a valid assumption, then why should modifying the scope of one 
> controller effect the other?
>
In your case, it does not. However the point is that angular can't 
guarantee this. So if you do something outside it's scope, and you call 
$apply, all watchers fire. This needs to be done, to make sure that 
everything is in sync. Hence by advice to you to utilize $digest in your 
case. 

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.

Reply via email to