title: Block application until user data has been loaded
body: <p>I'm writing an angular2 application. To authenticate the user, I'm storing a token in the local storage. This tokens contains only a bit of information to identify the user, no further information like user roles and so on. What Now I want to archive this:</p>
  
  <p>When the user (re)loads the page (any route) and there is a token stored, then I want to make a XHR to retrieve the user data. I want the application (router?) to wait until the server has sent the data.</p>
  
  <p>My question is: Where should I place this request and how do I block the application until the server has responded?</p>