-
Notifications
You must be signed in to change notification settings - Fork 235
Description
Might be a duplicate of #61
It would be nice to be able to reach different progress states using a new method "moveTowards()".
moveTowards() would provide a way to animate the progressbar towards percentages but not overrunning them to better model what is going on if the progressbar is modelling a few states.
I'm using it for a firmware update process:
- STATE_FIRMWARE_DOWNLOAD = moveTowards(10%)
- STATE_FIRMWARE_INSTALLING = moveTowards(30%)
- STATE_FIRMWARE_REBOOTING = moveTowards(50%)
- STATE_FIRMWARE_DONE = moveTowards(100%)
This would make the progressbar better aligned with what is actually happning. Given that the process is somewhat deterministic.
moveTowards() should start out being 100% to keep current feel of ngProcess.
In my case the download phase is quick and the reboot slow. Makes in more linear so that the user can estimate the time to completion.
Also... My AngularJS skills is not a stage where I'm able to do a PR for you ... sorry.