Posts by Luiza Beraka • 1 point
2 posts
-
-1
votes1
answer29
viewsA: Validation at Angular 9
Create a method and call it in front-end (input) = "removeSpace()" removeEspaco(){ this.contact.patchValue({ obs: this.contact.value.obs.replace(/^\s+/g, "") }) } Solved the problem.…
angularanswered Luiza Beraka 1 -
0
votes1
answer29
viewsQ: Validation at Angular 9
I have a form, and in one of the inputs I need to do a validation so that when there are only blanks nothing happens. Example below: phone: [this.currentUser ? this.currentUser.user.phone : '',…
angularasked Luiza Beraka 1