title: Using promise chaining in resolve feature of $routeProvider
body: <p>One of my variables in resolve method has dependency of another variable, is it possible to share same promise among variables in resolve method?</p>
  
  <p>It seems $route.current.locals stores the resolved variables, however when var2 is processed, $route.current.locals is null since var1 is not resolved yet. What I'm trying to is something like this:</p>
  
  <pre><code>$routeProvider.when('/report/:ruleId', { resolve: {
      var1: ['$route', 'service', function ($route, service) {
          return service.getRequest();
      }],
      var2: ['$route', 'service', function ($route, service) {
          return service.getAnotherRequest($route.current.locals.var1.id);
      }]
  }});
  </code></pre>