Closed manzooralam closed 3 years ago
I used this library, but notify event not happened?.
TemplateCode: <countdown [config]="{leftTime: 10, format: 'mm:ss', notify: 5}" (event)="handleEvent($event)"></countdown>
<countdown [config]="{leftTime: 10, format: 'mm:ss', notify: 5}" (event)="handleEvent($event)"></countdown>
handleEvent method code:
handleEvent(event: CountdownEvent): void { // notify action not trigger console.log(event); if (event.action === 'notify') { console.log(event); } }
Here stackblitz code ,
notify is number[] type when you don’t need to trigger every second.
notify
number[]
fixed by 11.0.3
11.0.3
I used this library, but notify event not happened?.
TemplateCode:
<countdown [config]="{leftTime: 10, format: 'mm:ss', notify: 5}" (event)="handleEvent($event)"></countdown>
handleEvent method code:
Here stackblitz code ,