title: then statement not running in angular promise
body: <p>In my application, a user clicks a button which triggers <code>runsOnClick</code>. In <code>runsOnClick</code>, I try to use a promise to call <code>someFunc</code> (this happens as expected) and once <code>someFunc</code> has finished running, I'm expecting this code (the <code>then</code> part of the promise) inside <code>runsOnClick</code> to run but it never does</p>
  
  <pre><code>then(function() {
            console.log("in runsOnClick");//this never runs, why?
           });
  </code></pre>
  
  <p>How do I structure a promise so that all the code in <code>runsOnClick</code> runs?</p>
  
  <pre><code>  $scope.someFunc = function(){
      console.log("in someFunc");
      $http.get('http://localhost:8090/endpoint').success(function(data){
        console.log(data, "this logs");
        });
    },
    $scope.runsOnClick = function(){
  
       $scope.someFunc().then(function() {
        console.log("in runsOnClick");//this never runs, why?
       });
    },
  </code></pre>