vue-countdown
vue-countdown copied to clipboard
[fature-request] Add a restart method
It would be cool to have a restart method that takes the countdown to the initial time.
You can call the end
method first, and then call the start
method to restart.
@fengyuanchen the problem is that I have some actions in the end
event and I don't want to be executed at least if finished for real.
You can also remount the component.
You can call the
end
method first, and then call thestart
method to restart.
end
method make totalMilliseconds
to be zero, then countdown cannot start again using start
method.
Supports this as of v2.1.0.