0.1.3 • Published 7 years ago

ng2-analogical-countdown v0.1.3

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

ng2-analogical-countdown

npm.io

Installation

To install this library, run:

$ npm install ng2-analogical-countdown --save

Usage

In order to use animation, please include Animation Module from angular v4.x to your project:

    import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
    import { CountDownModule } from 'ng2-analogical-countdown';

    @NgModule({
        imports: [ BrowserModule, BrowserAnimationsModule, CountDownModule ],
        ...
    })
    export class AppModule {}

Now you can use analogical-countdown directive in your Angular application:

    <analogical-countdown [time]="18000" (beep)="beep()"></analogical-countdown>

Demo

License

MIT © Jaime