title: How can I code some function that executes if my $http has a success or error?
body: <p>I have a simple $http call:</p>
  
  <pre><code>    $http({
          url: '/api/abc/Post',
          method: "POST",
          data: home.modal.data
      })
      .success(function (result) {
  
      })
      .error(function(error) {
  
      });
  </code></pre>
  
  <p>How can I code some function that will execute at the end after either the .success or the .error has returned ?</p>