countdown component displaying time like -1:10:01:29
Closed this issue · 2 comments
bretbas commented
Hello everyone!
I have a date expire
, which i want to pass in your countdown
. And I do that.
But when the expire
date is really expired, the countdown
component display it like this -1:10:01:29
.
But I want 00:00:00:00
How can I do that?
cipchk commented
It's easy to achieve with render
, like this:
<countdown [config]="{leftTime: 3}" [render]="renderTpl"></countdown>
<ng-template #renderTpl let-i>
{{ i.value > 0 ? i.text : 'Finished' }}
</ng-template>