ng-countUp.js is a AngularJS directive which wraps countUp.js
In action: http://anderskristo.me/ng-countUp.js
bower install ng-countUp.js --save
Add ngCountUp
to angular module ex.
angular.module('App', ['ngCountUp'])
<ng-count-up from="0" to="2500" decimals="1" duration="2" delay="500" options="options"></ng-count-up>
Params:
from
= the value you want to begin atto
= the value you want to arrive atdecimals
= number of decimalsduration
= duration in secondsdelay
= delay until countUp fires off - in millisecondsoptions
= object that determines number formatting and toggles easing - see below
Options:
$scope.options = {
useEasing : true,
useGrouping : true,
separator : ',',
decimal : '.',
prefix : '',
suffix : ''
};