-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get username in AngularJS controller? #1
Comments
Hi Michael, |
I've updated the example to display username and indicate the role of the logged in user. You can check it out at: http://angular-client-side-auth.herokuapp.com/ |
that's super nice and really fits my needs. Cheers :) |
No problem :) Good luck with your project! |
Hi i really like your auth code and I am using it as a template for my project.
I was wondering what would be the best way to keep the username accessible through my custom Controllers.
I saw that I can use $rootScope.userRole to get the userRole in my controllers but what would be an efficient way to keep username?
i tried a UserDetails factory that keeps the username. it worked until i do a refresh of the page (F5) then i loose the username value.
any idea please?
The text was updated successfully, but these errors were encountered: