title: Passing $scope data to $stateProvider.state resolve
body: <p>I have a parent state app.teams.show which stores "team" in $scope.data.team. Within a controller I have access to $scope.data.team and therefore $scope.data.team.organization_id. </p>
  
  <p>How can I access $scope.data.team.organization_id inside the resolve?</p>
  
  <pre><code>.state('app.teams.show.games.add', {
      url: '/add',
      templateUrl: 'templates/schedule/games/add.html',
      controller: 'GamesAddCtrl',
      resolve:{
          org: function($http, $scope){
              return $http.get('http://api.example.com/orgs/'+$scope.data.team.organization_id, {cache: true});
          }
      }
  })
  </code></pre>