question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ignoreLoadingBar in $http request data doesn't appear to prevent loading bar from appearing

See original GitHub issue

The 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:closed
  • Created 9 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
mkhatibcommented, Feb 11, 2015

@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.

0reactions
chieffancypantscommented, Feb 24, 2015

@mkhatib thanks for the help in resolving!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found