I'm new in AngularJS. I'm trying to make a request to a web service. I would like to implement a progress bar that tells me what percentage this request. Maybe someone has a basic example of which can guide me. Greatly appreciate it if anyone can give me a hand with this. I will try to explain a little more. I have a request like this. I want you to show me the percentage from start to finish. I'm new, so I would like to find something simple but functional.
$http({
method: 'GET',
url: "www.examplejson.com/example",
timeout:5000
}).success(function(data){
console.log("complete!");
}).error(function(response,status,headers,config) {
console.log("error");
});
$http
. I have previously done this to track progress of uploaded files but had to use JavaScript's XMLHttpRequest object to get actual progress. The angular-loading-bar doesn't show actual progress – Borecole