ngx-numberonly-directive
v1.0.8
Published
This Library adds a new directive called ngx-numberonly-directive it will allow users to enter numbers only in the input box.
Downloads
3
Maintainers
Readme
NgxNumberonlyDirective
This Library adds a new directive called ngx-numberonly-directive it will allow users to enter numbers only in the input box.
This project was generated with Angular CLI version 12.0.0.
How To Install
npm i ngx-numberonly-directive
How To Use
Import NgxNumberonlyDirectiveModule module in your app module
import { NgxNumberonlyDirectiveModule } from 'ngx-numberonly-directive';
@NgModule({
declarations: [
],
imports: [
NgxNumberonlyDirectiveModule
],
providers: [],
bootstrap: [AppComponent]
})
In your HTML code
<input type="text" numberonly decimal="false" decimal_place="2">