Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sanjayiyer242 opened this issue Nov 18, 2016 · 2 comments

Comments

@sanjayiyer242
Copy link

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

@otterslide
Copy link

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

@NicolasGeraud
Copy link

Hi,

in typescript it can be done like that :

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants