title: How to put return data from .success into another object?
body: <p>I'm trying to get the return data inside .success.
  so I tried this ..</p>
  
  <pre><code>.controller('main', function($scope,$http){
      $http({
      method: 'JSONP',
      url: 'someURL'})
      .success(function(data){
          $scope.responseData = data;
      });
      $scope.anotherObj = $scope.responseData;
  }
  </code></pre>
  
  <p>Then I realized that the $scope.anotherObj is 'undefined'. What is the easiest way to get the return data out of .success?</p>