Handle asynchronous authentication in Firebase on page reload to get list that needs user's uid
问题 Using Angularjs. How do you handle the situation where a person reloads a page and the controller tries to query Firebase using the current user's uid before the Firebase auth event is triggered and has a chance to set the current user? Details: The Firebase query require's the user's uid and everything works when navigated to the route via $state.go('/list') But when a person reloads the page the controller checks for the user which doesn't exist until this event handler fires: auth