Comments (6)
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.
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.
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.
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.
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.
Sorry for the late followup. Are you still having the issue?
from angular-busy.
Related Issues (20)
- Modal
- It would be great to have less dev files bundled within npm package.
- Allow advanced version to accept a promise, or something that has a .promise or .$promise HOT 2
- Angular-busy2 HOT 3
- Internationalization aka i18n HOT 2
- Please upgrade for angular 1.6.0 or higher HOT 8
- Unknown provider: cgBusyDefaults HOT 4
- 4.1.4 not published to npm HOT 1
- How to stop loading cg busy when got an error from http request
- Does the component work with a native Promise? HOT 1
- cg-busy with an Http Interceptor
- CgBusy + Angular 1.x + ES6 HOT 5
- Gain access to $cgBusyIsActive()
- Nice. What is the latest angular ?
- Please upgrade for angular 1.4.9 and higher HOT 4
- Spinning counter clockwise. HOT 1
- Is the project alive? HOT 7
- Cannot print messages with custom interpolators
- Does not exit on $q.reject HOT 1
- What if I'm not using promises? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-busy.