title: Always do action before and after $http
body: <p>I want my app to always do some actions before and after <code>$http</code> running like loading animation or delete all messages.</p>
  
  <pre><code>// Add loading animation + Remove all messages
  $http({}).then(function(response) {
      // Remove loading animation + Add Success messages
  }, function(response) {
      // Remove loading animation + Add Failure mesages
  });
  </code></pre>
  
  <p>But if I code like this, my code is not DRY.
  How can I do this without repeat myself?</p>
  
  <p>Thank you!</p>