title: Loading data before loading controllers & views
body: <p>I'm having a bit of trouble here.</p>
  
  <p>I have an AngularJS application that connects to an API and allows users to login, register, etc. The user receives a token that is then stored to $localStorage (via ngstorage). </p>
  
  <pre><code>$localStorage[JWT] = data.token;
  </code></pre>
  
  <p>When a user visits my application with a token stored, I want to present him with a loading page (regardless of which page he is trying to view) until I verify his token is correct, and then load views/controllers as usual.</p>
  
  <p>I've looked into different ways of doing this, but I couldn't figure out any. Any pointers are appreciated!</p>
  
  <p>Thanks.  </p>