only-numbers
v1.0.1
Published
A module for only-number directive to users in Angular 4+ applications.
Downloads
56
Readme
Ng2 OnlyNumbers
A module for only-number directive to users in Angular 4+ applications.
About
Component directives only numbers in numerical inputs. Use dot in decimal mark
=================
Authored by Guilherme Abreu
Licensed under MIT
Quick start
only-numbers
is shipped via npm. You can install the package using the following command:
npm install --save only-numbers
In app.module
import { OnlyNumbersModule } from 'only-numbers';
imports: [
BrowserModule,
OnlyNumbersModule
],
In html
<input type="number" name="only-number" OnlyNumbers = "true">