Skip to content

olubunmitosin/ngx-counter-up

Repository files navigation

ngx-counter-up

== Angular 7

Installation

  • Install NPM ngx counter up
npm install ngx-counter-up --save
  • Add CounterUpModule to your app.module.ts
import { CounterUpModule } from 'ngx-counter-up';
@NgModule({
  imports: [ CounterUpModule.forRoot() ]
})

Usage

  • You can use counter-up component like so:
<span counter-up offset="1" number="1000">0</span>
import { CounterUpModule } from 'ngx-counter-up';
@NgModule({
  imports: [ CounterUpModule.forRoot({
    delay: 1000,
    time: 100
  }) ]
})

Callbacks( Output )

  • You can apply complete callback function:
<span counter-up number="10" (complete)="log($event)">9</span>

Feedback

Please leave your feedback if you have noticed any issues or have a feature request.

License

The repository code is open-sourced software licensed under the MIT license.

About

Angular 7 Counter Up Module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published