title: Angular one resolve for all states
body: <p>I got a routeProvider for my states. </p>
  
  <pre><code>$routeProvider.
        when("/register",{
          templateUrl: "templates/register.html",
          controller: "RegisterCtrl",
          resolve: {
            user: function(Auth) {
              return Auth.resolveUser();
            }
          }
        }).
        when("/home",{
          templateUrl: "templates/home.html",
          controller: "HomeCtrl",
          resolve: {
            user: function(Auth) {
              return Auth.resolveUser();
            }
          }
        }). .... [.....]
  </code></pre>
  
  <p>Every state got a promise which resolves, when user-state is loggedIn. Then the code of the different controllers is executed. Now I want to have a mainController for the navigation bar, which should be present on all sites. The controller needs the userdata for checking for new messages etc. </p>
  
  <p>Now: how is it possible to define the resolve globally in a root state (so i can access the userdata in the root controller for all sites) and all the other controllers execute their code only, if the promise from this roote state is resolved?</p>
  
  <p>I hope I formulated my question understandable...</p>