Angular Odometer
angular-odometer lets you use Hubspot Odometer as angular directive
Demo page
Installation
Install depedencies using bower:
bower install angular-odometer
Add js libraries to your application:
... ...
Add css stylesheets to your application:
Add ngOdometer module to you application
... angular ...
Usage
All you need is to place a ngOdometer with its attribute in your view like the following piece of code:
... <ng-odometer value="1234"></ng-odometer> ...
value
: the odometer value, can be dynamically set through controller scope variable, e.g. : value="{{myScopeVariable}}"
. The value can also be refresh, the transition from one value to the other will be automatically done.
Brower compatibility
Chrome: 35 Safari: 7