title: check if success is done executing in http.get angular
body: <pre><code>$scope.func1 = function() {
      $http.get(url, {params}).success(function(result){
          // code
      }).error(function(error){
          // error
      })
  }
  
  $scope.func2 = function() {
      $scope.func1();
      // when http of func1 done executing, call following code
  }
  </code></pre>
  
  <p>How do I check in func2 if <code>http.get</code> success  of func1 is done executing?</p>