GithubHelp home page GithubHelp logo

Programmatically hide? about angular-busy HOT 6 CLOSED

eppak avatar eppak commented on June 1, 2024
Programmatically hide?

from angular-busy.

Comments (6)

cgross avatar cgross commented on June 1, 2024

You shouldn't need to hide the indicator. The promise tracker will handle that for you. Have you actually seen the indicator continue to show after an error? If so, please let me know the details of your situation.

from angular-busy.

eppak avatar eppak commented on June 1, 2024

If my json is malformed the indicator continue showing and disable the back, where is positioned.
Tried with a catch but it persist showing.

from angular-busy.

cgross avatar cgross commented on June 1, 2024

What version of angular are you using? The promise should be getting rejected and that should automatically hide the indicator. Please get the underlying promise & promise tracker and log what its state is after the error. You can get the underlying promise tracker by:

//inject promiseTracker into your controller
//then in your error handler
console.log(promiseTracker('my_tracker').active());
//you can manually cancel the tracker but you shouldnt be having to do that
promiseTracker('my_tracker').cancel();

from angular-busy.

eppak avatar eppak commented on June 1, 2024

I'll do this test and let you know, but if you say it has to hide itself, the problem maybe the promisetracker, i installed it with npm, but the min version was corrupt...

I keep you update

from angular-busy.

eppak avatar eppak commented on June 1, 2024

With
console.log(promiseTracker('my_tracker').active());

It write:

(anonymous function) angular-animate.min.js:13
q angular.min.js:7
t angular-animate.min.js:13
O angular-animate.min.js:14
K angular-animate.min.js:18
c angular-animate.min.js:18
enter angular-animate.min.js:21
(anonymous function) angular-animate.min.js:7
q angular.min.js:7
p angular-animate.min.js:7
x angular-animate.min.js:7
d angular-animate.min.js:7
(anonymous function) angular-animate.min.js:7
q angular.min.js:7
p angular-animate.min.js:7
p angular-animate.min.js:9
(anonymous function) angular-animate.min.js:11
h.$digest angular.min.js:100
h.$apply angular.min.js:102
f angular.min.js:67
K angular.min.js:71
y.onreadystatechange

before the calling it work correctly. My version of angular is v1.2.4

from angular-busy.

cgross avatar cgross commented on June 1, 2024

Sorry for the late followup. Are you still having the issue?

from angular-busy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.