Comments (15)
I've noticed this as well, looks like an issue with the interval not getting cleared properly to me. I'd suggest migrating to $timeout instead of setInterval to make it more angulary.
from ngprogress.
I have changed setInterval to $timeout and it appears to have solved this problem for me.
http://plnkr.co/edit/XG9KIqje9eD13ms3l81N
from ngprogress.
Haven't tried it, but it looks like you broke the faux progress functionality (which is the whole point of this directive). You will need to set the $timeout again and again if you want to mimic setInterval functionality.
from ngprogress.
the faux progress isn't broken - the loading is too fast ... (I think)
from ngprogress.
It is, comment out ngProgress.complete(); and nothing happens.
from ngprogress.
Ups, yes you are correct!
from ngprogress.
@oblador @Grigorius @sthomp I developed an alternative angular.js provider (due to a lot of issues in this one), it's called ngProgressLite - http://labs.voronianski.com/ngprogress-lite.js/
It's small and has same API as original jquery plugin. You can check it out and maybe it will suit you.
from ngprogress.
I'm currently using this: http://ricostacruz.com/nprogress/
from ngprogress.
Thanks, will take a look
from ngprogress.
@Grigorius yeah, ngProgressLite is a port of it to angular.js with the same API, it's not a good practice to be dependant on jquery in angular app.
from ngprogress.
Looks like due to the lack of updates and / or feedback, and several problems with this issue, i'm movin to ngprogress-lite too. Lets see how it works.
from ngprogress.
@bondaestudi thanks! spread a word about it to get users that are coping with troubles here to swtich to more stable solution
from ngprogress.
this bug happens to me also, @victorbjelkholm is not developing this anymore?
from ngprogress.
@avances123 no he currently does not have the time.
I've taken over the development of this basically and planning to get this straight. Bugs/wishes/code are very welcome!
from ngprogress.
@sthomp @oblador @avances123 @Grigorius does this bug still affect you with the current version? If true, than please clarify.
from ngprogress.
Related Issues (20)
- website HOT 4
- Update link reference HOT 1
- Fix naming in bower.json HOT 1
- Broken API? HOT 1
- Typescript definition file HOT 1
- Versions missing from npm HOT 9
- 'main' referenced in package.json doesn't exist. HOT 4
- setParent() not work HOT 4
- Bower Install Warning HOT 2
- ngProgress injected is not the service but the factory HOT 6
- ngProgressFactory function misses it's dependencies HOT 3
- ngProgressFactory injection failed HOT 1
- Documentation issue HOT 1
- progressbar.complete() shouldn't animate unless it has been started
- first param in $timeout&progress speed HOT 1
- TypeError: 'undefined' is not an object (evaluating 'this.parent.appendChild')
- after deploy code in enviroment - ngprogress version not found HOT 1
- NPM Version Request HOT 4
- IE not reflecting DOM updates and progress bar is delayed until the page is nearly done loading HOT 1
- Request for new maintainer HOT 4
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 ngprogress.