Does angular has some function like success say before which will execute before actual $http call.
Quick answer: No.
But you can implement this module in factory
or provider
and implement any logic you want.
Here is example:
.factory('ajax_post', ['$http', function(_http) {
var path = 'src/php/data.ajax.php';
return{
init: function(jsonData){
// do logic here
var _promise= _http.post(path,
jsonData
,{
headers: {
'SOAPActions': 'http://schemas.microsoft.com/sharepoint/soap/UpdateListItems'
}
}
);
return _promise;
}
}
}]);