https://github.com/hanford/angular-restrict-number
Directive for enforcing inpuit's ngModel is always a number
https://github.com/hanford/angular-restrict-number
Last synced: 22 days ago
JSON representation
Directive for enforcing inpuit's ngModel is always a number
- Host: GitHub
- URL: https://github.com/hanford/angular-restrict-number
- Owner: hanford
- License: mit
- Created: 2016-04-29T18:34:01.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-29T23:01:39.000Z (almost 9 years ago)
- Last Synced: 2025-03-21T05:33:06.376Z (about 1 month ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
## angular-restrict-number
[![NPM][dl-icon]][dl-url]
#### Installation
Installation is super easy, simply add the dependency to your build and add 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 () {})
```Finally in your template you can add
``````
[dl-icon]: https://nodei.co/npm/angular-restrict-number.png?downloads=true
[dl-url]: https://npmjs.org/package/angular-restrict-number