I want my application to always perform some before and after actions $http, performed as loading animations or deleting all messages.
$http({}).then(function(response) {
}, function(response) {
});
But if I code like this, my code is not dry. How can I do this without repetition?
Thank!
source
share