ng-number-spin
v1.0.0
Published
Directive for numeric inputs, with customizable spin arrow buttons
Downloads
52
Readme
ng-number-spin
ng-number-spin is a customizable directive for numeric inputs with spins for Angular.js
Installation
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>
Documentation
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
Development
ng-number-spin uses Gulp.
To build source files use this command.
$ gulp build
License
MIT