Fields with mask in Angular forms

Asked

Viewed 170 times

0

Does anyone know anything that I can validate very dynamically forms in Angular?

I have a form in an Angular application that I created using Bootstrap that I need to validate many items such as ZIP, CPF, RG, Email etc.

  • But how to validate the form? On the Front-end or Back-end?

  • A person registration form for example, where I have CPF, RG etc, I need to validate the form fields (inputs), not letting the user inform invalid RG or CPF etc.

  • So from what I understand, it’s on the front. Cara there are different ways to do this, with Angular itself and its directives (If you are using Angular you should already know), with Booststrap and through HTML5 form properties.

  • I understand what you said, but through npm for example, there are packages that you can input into your project to validate forms, I would like to find a very dynamic method for validating forms in Angular without perhaps having to write a lot of code if possible, if you know of any source of information where there is a very dynamic and complete way to validate forms thank you.

  • I’m not familiar with these npm packages that help in validating forms, but I don’t think that when validating fields for forms you have to write a lot of code, until pq frameworks like Angular itself came exactly to solve this problem.

No answers

Browser other questions tagged

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