angular-countUp
Lightweight plugin for AngularJS without any dependencies for smooth changing the scope numbers
Installation
Include the file to your page after angular
, like so:
Add the module name to your main app file, for example:
angular
Usage
myvalue
is a $scope.myvalue
in your controller
Additional attributes:
time
- total time of increase from old value to new value. Default 1000 (1 second);steps
- frame count. Default 10;decimals
- count of numbers after dot. Default 0;before
- text before the value. Default: none;after
- text after the value. Default: none;