Posts by Fábio Pereira • 1 point
1 post
-
0
votes7
answers7167
viewsA: How to receive the CPF number and format to be without the dots and dash(Input Mask )
You can do it directly in your form before submitting it through replace(): formulario: FormGroup; this.formulario.value.cpf = this.formulario.value.cpf.replace(/\.|-/gm,''); Obs.: whereas your…