1.0.0 • Published 5 years ago

@nkovacevic/ngx-countdown v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

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

1.0.0

5 years ago