An open API service indexing awesome lists of open source software.

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

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