Giter Site home page Giter Site logo

Comments (15)

oblador avatar oblador commented on July 30, 2024

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.

Grigorius avatar Grigorius commented on July 30, 2024

I have changed setInterval to $timeout and it appears to have solved this problem for me.

http://plnkr.co/edit/XG9KIqje9eD13ms3l81N

from ngprogress.

oblador avatar oblador commented on July 30, 2024

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.

Grigorius avatar Grigorius commented on July 30, 2024

the faux progress isn't broken - the loading is too fast ... (I think)

from ngprogress.

oblador avatar oblador commented on July 30, 2024

It is, comment out ngProgress.complete(); and nothing happens.

from ngprogress.

Grigorius avatar Grigorius commented on July 30, 2024

Ups, yes you are correct!

from ngprogress.

voronianski avatar voronianski commented on July 30, 2024

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

Grigorius avatar Grigorius commented on July 30, 2024

I'm currently using this: http://ricostacruz.com/nprogress/

from ngprogress.

sthomp avatar sthomp commented on July 30, 2024

Thanks, will take a look

from ngprogress.

voronianski avatar voronianski commented on July 30, 2024

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

gsabater avatar gsabater commented on July 30, 2024

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.

voronianski avatar voronianski commented on July 30, 2024

@bondaestudi thanks! spread a word about it to get users that are coping with troubles here to swtich to more stable solution

from ngprogress.

avances123 avatar avances123 commented on July 30, 2024

this bug happens to me also, @victorbjelkholm is not developing this anymore?

from ngprogress.

dasois avatar dasois commented on July 30, 2024

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

dasois avatar dasois commented on July 30, 2024

@sthomp @oblador @avances123 @Grigorius does this bug still affect you with the current version? If true, than please clarify.

from ngprogress.

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.