ng-count-up-js
v1.1.1
Published
CountUp.js for angular
Downloads
212
Readme
ng-count-up-js
Install
npm i ng-count-up-js
app.module.ts
import { CountUpModule } from 'ng-count-up-js';
..........
@NgModule({
..........
imports: [
CountUpModule,
..........
]
})
component.html
<div appCountUp [endVal]="endVal" [duration]='0.1'></div>
Parameters
Input
- endVal: the number to count to
- duration: Optional duration of the animation in seconds. Default is 2.
- startVal: (Number) Optional start value for the count. Defaults to zero.
- decimals: Optional number of decimal places. Default is 2.
Output
- complete