clemdesign / angular-cd-timer

Angular timer component with countup, countdown, and multiple options...
MIT License
12 stars 7 forks source link

Timer started to increase after becoming 0 when I set [countdown] to true #54

Closed karthick-infinire closed 9 months ago

karthick-infinire commented 9 months ago

In my application, I am using a two timer Elapsed time: <cd-timer [startTime]="appt.elapsedTime" format="ms"> Remaining time: <cd-timer [countdown]="true" [startTime]="appt.remainingTime" (onTick)="onTimeChange($event, appt)" format="ms">

I am using this in for loop Did anything I missed?

clemdesign commented 9 months ago

Try to set [startTime] to fixed value. If no problem appears, look around appt.remainingTime updating.

karthick-infinire commented 9 months ago

I tried to set [startTime] to a fixed value but it doesn't work. Then I handled the onTick and used the stop() function for this. It worked.