ng-numbers-only-input-directive

A package directive for block letters for only number input

Usage no npm install needed!

<script type="module">
  import ngNumbersOnlyInputDirective from 'https://cdn.skypack.dev/ng-numbers-only-input-directive';
</script>

README

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>