ng-number-spin is a customizable directive for numeric inputs with spins for Angular.js
ng-number-spin examples
ng-number-spin requires Node.js v4+ to run.
Install the package.
$ npm install ng-number-spin --save
Add to module dependencies
var app = angular.module('app', ['ngNumberSpin']);
Usage example
<number-spin data-ng-model="vm.amount"></number-spin>
ng-number-spin is currently supported with the following features. Options on how to use them in your own application are linked below.
Option | Type | Default | Description |
---|---|---|---|
step | number | 1 | increase/decrease step size on button click |
spin-buttons | boolean | true | show or hide spin buttons |
ng-number-spin uses Gulp.
To build source files use this command.
$ gulp build
MIT