Ionic 3 Masks and CPF Validation

Asked

Viewed 909 times

0

Good afternoon guys, I’m making a PWA app with Ionic 3 and I need to insert some masks in forms and validate the user’s CPF. I have tried various forms and libs, but have not succeeded in any. Could someone suggest me a library to do the Mask and CPF validation ?

I tried to use the br-Masker-Ionic-3 but it didn’t work either (https://github.com/amarkes/br-masker-ionic-3)

NOTE: To validate other fields I am using Validators with Angular 2 Formbuilder.

[UPDATE] Being able to make the masks with brmasker4, only importing the library into the module of the page and inserting the validation in the HTML input tag, now only remains to make the valid CPF validation

  • https://answall.com/questions/123741/validar-cpf-com-express%C3%A3o-regular-javascript

  • in the link above has what you seek.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.