title: how to use $resource with resolve
body: <p>I'm trying to use angular's resolve when trying to navigate between routes:</p>
  
  <pre><code>when('/user',
     {
        templateUrl: 'partials/user.html',
        controller: 'UserController',
        resolve: { auth: RouteAuthenticationCheck }
  })
  </code></pre>
  
  <p>This works fine when I use $http because it returns a promise:</p>
  
  <pre><code>var RouteAuthenticationCheck = ['$http', function ($http){
      return  $http.get('/login');
  }];
  </code></pre>
  
  <p>But when I use $resolve, it does not.. and this code would not work:</p>
  
  <pre><code>var RouteAuthenticationCheck = ['$resource', function ($resource){
      return $resource('/login').get();
  }];
  </code></pre>
  
  <p>What is the appropriate way to uses $resource to resolve when changing routes?</p>