Skip to content

matthiaskomarek/angular-only-numbers-input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular Numbers Input Build Status

Allow only numbers between specified min and max values on an input field.

Requirements

  • AngularJS

Usage

Download from Github. File is located at the dist folder.

Load the script files in your application:

<script type="text/javascript" src="bower_components/angular/angular.js"></script>
<script type="text/javascript" src="path/to/file/onlyNumbersInput.js"></script>

Add the specific module to your dependencies:

angular.module('myApp', ['mk.onlyNumbersInput', ...])

Use it on input fields and specify min and max values.

<input type="text" only-numbers max="100" min="0" ng-model="inputValue">

About

Angular directive to allow only numbers as input on an input field

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors