fengyuanchen / vue-countdown

Countdown component for Vue.js.
https://fengyuanchen.github.io/vue-countdown/
MIT License
689 stars 89 forks source link

restart the countdown #86

Open moradimohamad opened 1 year ago

moradimohamad commented 1 year ago

Im using V1 in my vue2 app but cant see any restart method

Vitomir2 commented 1 year ago

@Observer1995 The restart method is introduced only in the v2, therefore, the method is missing in the v1. Hopefully, the devs will add it soon, otherwise, you can contribute by proposing such change in the v1 repo.

waleedtariq109 commented 1 year ago

@Vitomir2 How I can run restart method in v2. Can you please share some example.

mediv0 commented 1 month ago

@Vitomir2 How I can run restart method in v2. Can you please share some example.

get a ref to the component then

ref.value.restart