ignoreLoadingBar in $http request data doesn't appear to prevent loading bar from appearing
See original GitHub issueThe loading bar still appears when invoking an asynchronous server request with ignoreLoadingBar set to true.
updatePackageInstance: function( packageInstanceId, formData ) {
// Prevent the loading bar from indicating an asynchronous update is in-progress
formData.ignoreLoadingBar = true;
// Update an existing loan package instance using form data
return $http.put( 'data/package/instance/' + packageInstanceId, formData )
.then(function( response ) {
return response;
},
function( error ) {
return $q.reject( error );
});
},
Issue Analytics
- State:
- Created 9 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
angularjs - Hide the loading bar for specific page
My workaround was to add ignoreLoadingBar: true to the $http request in my controller. I then manually triggered the loading bar ...
Read more >angular-loading-bar
A fully automatic loading / progress bar for your angular apps. ... I wanted to get your opinion on a common occurrence in...
Read more >Get better UX with Angular loading-bar
The solution is simple, add a cool loading-bar/progress-bar on top of the page whenever an XHR request goes out in Angular. There is...
Read more >New loading bar - Share an idea
I appreciate that Figma wants to show it's commitment to diversity and inclusion. That's fine. However, I don't see why political and ...
Read more >Automatic page loading / progress bar for Angular - Morioh
if you use `@angular/common/http` npm install @ngx-loading-bar/core ... bar is showing for example show the loading bar when an HttpClient request is being ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@mtpultz I got this working. $http.put accepts a 3rd optional parameter for config
put(url, data, [config])
. Pass the ignoreLoadingBar attribute in an object to config and that would work.angular-loading-bar
expects the parameter to disable the bar through the config not form data.Hope this helps.
@mkhatib thanks for the help in resolving!