1.0.3 • Published 6 years ago
ng4-currency-mask v1.0.3
ks-currency-mask
Mask separador of thousands fields of entreda in reactive and nonreactive forms, only modifies aesthetically the amount does not modify ngModel or reactive forms
try DEMO online http://libraries.carloscifuentes.cl/
installing the sample
npm install ks-currency-mask --save
implementation app.module.ts
import { KsCurrencyMask } from '../../node_modules/ks-currency-mask/lib/ks-currency-mask.module';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
FormsModule,
ReactiveFormsModule,
KsCurrencyMask
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
use
<input ksCurrentFormatter [(ngModel)]="amount" formControlName="amount" name="amount" type="text">
working with the repo
git clone https://github.com/kasius/ks-currency-mask.git
cd ks-currency-mask
npm install
ng serve
1.0.3
6 years ago