chieffancypants/angular-loading-bar

I dont want loading bar for only one particular http hit (out of many)

Opened this issue · 2 comments

What version of angular-loading-bar are you using?
v0.9.0
What version of AngularJS are you using?
1.5.7
What browsers are affected?
NA
Please provide either a JSFiddle, Plunkr example that replicates the issue

Please describe the issue
I have many http hits. In that i dont want loading bar for one particular hit.
For example I have 6 http hits. In that i dont want loading bar for 4th http hit.
What did you expect to happen?
Loading bar should never display for only one particular http hit(out of many)
What actually happened?
It is displaying Loading bar for all http hits

// ignore a particular $http GET:
$http.get('/status', {
ignoreLoadingBar: true
});

Hi,

in typescript it can be done like that :

const config = { ignoreLoadingBar: true } as ng.IRequestShortcutConfig;
return this.$http.get("/url", config);