View on GitHub



Angular-count-to

Angular directive to animate counting to a number


Count to {{countTo}} from {{countFrom}} over 1 seconds using AngularJS "{{filter}}" filter




Example directive code (number)

<h1 ng-count-to="{{model.countTo}}" count-from="{{model.countFrom}}" filter="number" duration="4" "></h1>
                  


Angular directive to animate counting to a currency


Count to {{countTo}} from {{countFrom}} over 4 seconds using AngularJS "currency" filter

Example directive code (currency)

<h1 ng-count-to="{{model.countTo}}" count-from="{{model.countFrom}}" filter="currency" duration="4" params="$" "></h1>