cipchk / ngx-countdown

Simple, easy and performance countdown for angular
https://cipchk.github.io/ngx-countdown/
MIT License
192 stars 57 forks source link

notify event not trigger #94

Closed manzooralam closed 3 years ago

manzooralam commented 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>

handleEvent method code:

handleEvent(event: CountdownEvent): void {
    // notify action not trigger
     console.log(event);
    if (event.action === 'notify') {
      console.log(event);
    }
}

Here stackblitz code ,

cipchk commented 3 years ago

notify is number[] type when you don’t need to trigger every second.

cipchk commented 3 years ago

fixed by 11.0.3