Open guillep2k opened 5 years ago
Hello, @guillep2k! You can try this as fallows
first import ngModel in app.module.ts
import { FormsModule } from '@angular/forms'
after
<input pInputText type="text" placeholder="0,00" name="valor" currencyMask [options]="{ prefix: 'R$ ', thousands: '.', decimal: ',', allowNegative: false }" ngModel>
Thank you, this should go to @Innomalist, @apappasadap (the original-original posters 😉)
Migrated from original project (https://github.com/cesarrew/ng2-currency-mask/issues/125)
Orignal request by @Innomalist, @apappasadap
Hi, I have been using your component with angular 7.2 and it works fine except this error which seems to be a simple np error. If you could please include a fix on next release.
Also by default even if no validation parameter is set it adds an ng-valid class to the input box which turns the placeholder to green color which isn't looking good to. If you could address this too please :)