title: Run controllers only after initialization is complete in AngularJS
body: <p>I have some global data that needs to be loaded before any controller is executed in my AngularJS application (i.e. resolve dependencies globally in AngularJS).</p>
  
  <p>For example, I have a <code>UserService</code> with the <code>getCurrentUser()</code> method which does a request to the backend server in order to get data about the currently authenticated user. And I have a controller that needs this data in order to launch yet another request (for example to load user's balance).</p>
  
  <p>How can I achieve that?</p>