cipchk / ngx-countdown

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

event.left emitted from (event) always showing the same value and it is not updating when called upon #61

Closed seetharaghavan closed 4 years ago

seetharaghavan commented 4 years ago

Bug Report or Feature Request (mark with an x)


[ X] Bug report -> please search issues before submitting
[ ] Feature request
[ ] Documentation issue or request

Current behavior

<countdown #cd1 config = {leftTime: 30} (event)="onHandleEvent($event) />

onHandleEvent($event){ $event.left shows the same 30s and not showing the updated one. }

Expected behavior

$event.left should change

Environment


Angular version: 9

ngx-countdown version: 8.0.3

Browser:
- [ ] Chrome (desktop) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] IE version XX

Others:

cipchk commented 4 years ago

Pls using notify parament, like this:

<countdown [config]="{leftTime: 30, notify: 0}" (event)="onHandleEvent($event)"></countdown>