Hey there, I'm new to Angular and had a question. Is it possible to use the $http service in Angular to trigger a function whenever there is any change in the ready state/status, not just for success or failure? If so, what would be the equivalent angular code for the following vanilla JavaScript code:
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (xhr.readyState < 4 && xhr.status != 200)
alert('Loading');
}
xhr.open...
xhr.send...