@nkovacevic/ngx-countdown
v1.0.0
Published
Countdown timer for Angular
Downloads
2
Readme
NGX Countdown Timer
NGX Countdown Timer is a simple Angular library that takes time (in ms) and counts down for that amount, notifying you once it started and finished.
USAGE
You can see the example in demo folder of this repository!
How to use:
npm i @nkovacevic/ngx-countdown
export class DemoComponent {
public endAfter = 20000;
public start() {
console.log(`Countdown ${this.endAfter / 1000}s has started!`);
}
public finished() {
console.log('Countdown has finished!');
}
}
<ngx-countdown [endAfter]="endAfter" (start)="start()" (finished)="finished()"></ngx-countdown>
LICENSE
MIT License LICENSE
AUTHOR
Nikola Kovacevic
Created on January 2019