On screen 1 (my login screen), I have a service that authenticates the username/password.
Event 1, call service and store result in localStorage.
Event 2, get localStorage variable and decide whether to navigate to next screen or deny access.
Problem is, it's performing Event 2 before Event 1 has finished. I'm new to all this so a little help would be greatly appreciated.