title: Angular - stateParams in route resolve?
body: <p>Getting my head around route resolves and wondering is it ok to use $stateParams in the following manner.</p>
  
  <pre><code> .state('movie', {
              url:'/movie/:id',
              templateUrl: 'partials/movie.html', 
              controller: 'MovieController',
              controllerAs: 'vm',
              resolve: {
                  movie: function(movieService){
                      return movieService.getMovie($stateParams.id);
                  }
              }
          });
  </code></pre>
  
  <p>considering the URL won't change until the route is resolved, will the id param still be passed into the function?</p>
  
  <p>Since the id is pulled from the stateParams and the state won't change until the route is resolved, does this mean using it in this fashion won't work?</p>
  
  <p>Thanks and merry Christmas :-)</p>