I'm creating a web app with angular. Users can log in and send messages to other users.
What's the best way of globally storing information about the logged in user - e.g. their username, ID, picture URL, etc? Or do I need to send it as part of the JSON data used to render each page?
YourModule.controllers('myCtrl, function ($scope, $rootScope)')and it will be accessible to any controller. Or you can use a separate service for that purpose as well...