Skip to content
This repository was archived by the owner on Sep 23, 2025. It is now read-only.
This repository was archived by the owner on Sep 23, 2025. It is now read-only.

Loading bar doesn't show if a new call starts before _completeAnimation is called #287

@mariocerrato

Description

@mariocerrato

What version of angular-loading-bar are you using?
0.9.0

What version of AngularJS are you using?
1.4.7

What browsers are affected?
Tried with Chrome

Please describe the issue
In the _complete method in cfpLoadingBar provider _completeAnimation is called only after 500 ms.

With AngularJS v.1.4.7 sometimes $animate.leave callback isn't called, so sometimes started flag remains to true; if it happens with a long call loading bar isn't showed and the user doesn't see it.

With AngularJS > v.1.4.9 the callback is fixed, but if a call starts before 500ms from another (if latencyThreshold isn't set > 500ms) loading bar won't show.

What did you expect to happen?
Loading bar is showed always when a call starts after a complete is called.

What actually happened?
Loading bar is showed only sometimes.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions