Skip to content

Linko91/angular-number-only

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-number-only

License Bower version

Angular number-only directive

Quick start

Several quick start options are available:

  • Download the latest release.
  • Clone the repo: git clone https://github.com/Linko91/angular-number-only.git.
  • Install with Bower: bower install angular-number-only --save.
  • Download minified.
  • Download un-minified.
  • Standalone: curl -O https://raw.githubusercontent.com/Linko91/angular-number-only/master/angular-number-only.min.js.

Usage :

  • Add angular-number-only.js to your code:
<script src="angular.js"></script>
<script src="angular-number-only.js"></script>
  • Add a dependency to the angular-number-only module in your application.
angular.module('MyApp', ['angular-number-only']);
  • Add a number-only-positive attribute to your <input> tag
<input number-only-positive [no-zero]>

License

angular-number-only is released under the MIT license. Have at it.


About

Angular number-only directive

Resources

License

Stars

Watchers

Forks

Packages

No packages published