ng-just-numbers
v1.0.0
Published
This is a Angular directive to use just numbers (and dots)
Downloads
6
Maintainers
Readme
Installation
run npm install ng-just-numbers
import import { NgJustNumbersModule } from 'ng-just-numbers';
on your module
add NgJustNumbersModule
to your imports.
You are free to go!
Using
using jnWithDots
or jnWithDots="true"
allow you to have numbers and dots (many)
using jnWithDots="false"
just allow you to have numbers
using jnWithOneDot
directive allow you to have numbers + 0 to 1 DOT.
Example
<input type="text" jnWithDots>
<input type="text" jnWithDots="false">
<input type="text" jnWithOneDot>