I have a singlepage application, and I would like to monitor POST for a webservice.
When I send the information it removes the loading.
ex:
scope.deleteFile = function (fileId,index) {
scope.loading = true;
imageHandler.remove(scope.contentId, fileId);
scope.attachments.splice(index, 1);
};
This is where I left off, but loading
is true
and would like to know when or what jquery or javascript native function I can use to check if the post is complete and after that give a scope.loading = false;