1.0.1 • Published 6 years ago

only-numbers v1.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

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">