title: TypeError: Cannot read property 'then' of undefined. Promises?
body: <p>I think I am having a few issues understanding how promises work. I understand that $http, $q, and $resource all return promises. But accessing the data that promises return, now that is the question. </p>
  
  <p>I keep getting an error that doesn't quite make sense to me.</p>
  
  <pre><code>TypeError: Cannot read property 'then' of undefined.
  </code></pre>
  
  <p><strong>Service</strong></p>
  
  <pre><code>this.method = function(args){
    return $http.get(url)
      .success(function(data.somePropertyOfReturnedDataBecauseItsJSON){
        console.log('It got the data');
      });
  }
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>$scope.getData = function(){
   service.method(args)
     .then(function(data){
       $someObject.someProperty = data;
     });
  }
  </code></pre>
  
  <p>Any advice and explanations would be fantastic!</p>
  
  <p>Thanks.</p>