-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to reset the countdown again revisit the page #14
Comments
When the target component is destroyed, i think can work. otherwise, just call |
I think the issue is still present in 3.0.1 |
check at https://stackblitz.com/edit/ngx-countdown-issue you will see that the timer doesn't start unless the page is refreshed. |
I was able to fix this by calling the counter restart in a setTimeout method in ngOnInit setTimeout(() => this.counter.restart()); |
I have updated the example: https://stackblitz.com/edit/ngx-countdown-issue |
Hi,
how to reset the countdown if again revisit the page.
Scenario:
configured: 60sec
The text was updated successfully, but these errors were encountered: