You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.
@sparshy I actually ended up injecting the $state service into my project's $rootScope. It made sense for me since my project started to get big.
For the case of the default MEANJS framework, it probably doesn't make sense to implement the Authentication service into the $rootScope, since the front-end is rather small.
If you find that your project is growing in size, and that you'd rather not inject your Authentication service into each controller/scope that needs it, then I don't see anything wrong with injecting it into your $rootScope. If it makes sense for your project.
Was there a specific reason that we are doing
in every scope, why not just do this once in run with $rootScope??
The text was updated successfully, but these errors were encountered: