UNPKG

ngx-number-only

Version:

A simple directive where we can specify for decimal precisions.

18 lines (10 loc) 553 B
# NgxNumberOnly This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.0.7. # NumberDirective This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.0.7. ## To use the directive In the app-module or the module you want to use the directive. import { NgxNumberOnlyModule } from 'ngx-number-only'; And in HTML file Use libNumeric directive to specify precision of decimal places and seperator. <input libNumeric type="text" decimals="2" negative="1" separator="."/>