angular-restrict-number
v1.1.0
Published
Directive for restricting inputs ngModel to only allow numbers
Downloads
3
Readme
angular-restrict-number
Installation
Installation is super easy, simply add the dependency to your build and add <input type="text" ng-model=".." ng-number/>
to your your input
# use npm
$ npm install angular-restrict-number
Add angular-restrict-number to your dependencies
angular
.module('yourApp', ['ngNumber'])
.controller('SampleController', function () {})