As a general rule, it is better to use services and dependency injection to 
share state between different parts of the application. However, putting a 
few broadly-used global variables like "currentUser" in the $rootScope is 
not necessarily horrible. That being said,  as with any global state, the 
`$rootScope` is very prone to abuse if not used with discipline. 


-- 
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