angular-progress-button
angular-progress-button copied to clipboard
Progress bar is not showing up after the first click.
Need to refresh the page to get it work again.
Do you mean the progress bar doesn’t show up at all until you refresh the page or do you want the progress bar to show up again when clicking the button a second time?
Progress bar shows up first time (first click). But if you click again bar does't shows up. Yes I want the progress bar to show up for subsequent clicks as well(Without page refresh).
Isssue 2 : The button text toggles way before progress bar reaches the complete state. I fixed it locally and using it. Would you mind if i check in that fix.
Okay, I think I understand your use case. While it’s possible to reset the button to its initial state using value = 0
, it lacks any kind of animation and may not be very intuitive. I’ll keep this issue open but I don’t know when I’ll get around to it.
Regarding your second issue, feel free to open a pull request.
If you want to increase the duration the bar is visible upon completion, you just need to increase this parameter. See this JS Bin, for example.
I could fix the issue by resetting the opacity value back to 1 in the ng-click handler. The problem was due to the opacity being set to 0. Thanks .