Ng Numbers Only Input Directive
Getting Started
Use this package in your Angular Application if you want to write only numbers in your input.
Installation instructions
Install ng-numbers-only-input-directive
from npm:
npm i ng-numbers-only-input-directive --save
Add package to NgModule imports:
NgNumbersOnlyInputDirectiveModule
Add in HTML as attribute numbersOnly
:
<input type="text" formControlName="controlName" numbersOnly>