README
Number Input Formatter
This Angular Material component (Module) allows you to have an input field that adresses formatting and returns just the value without the formatting.
The input field supports commas to separte the value and 2 decimals for floats. You can specify if you only require the integer and not decimal value.
Installation
npm install number-input-formatter
Scaffolding
Import the module into your project under imports
imports: [
BrowserModule,
AppRoutingModule,
NumberInputFormatterModule
]
Use
First create a formControl defining the input
form = this.fb.group({
number_1: [null],
number_2:[null]
})
In your component, use the following tag
<div style="margin: 24px;" [formGroup]="selection">
<wav-numeric-input-formatter
[placeholder]="'100.00'"
[label]="'Total Amount'"
[prefix]="'