Tutorials

Browsing #tutorials

jarallax-cover

Tutorials 11 entries


Password Validation with Reactive Forms

Mar 21 2021 / 1 comment / 12551 reads

Let's build a simple signup form with Angular and see how we can implement custom validation rules. Our form is going to have three input fields for the email address, password, and confirm password. The password requirements we want to fulfill are:

  • Must be at least 8 characters long
  • Must be alphanumeric, with at least one uppercase and one lowercase character
  • Must have at least one special character
  • Password and Confirm Password must match

We're going to validate these rules using Regular Expressions and give users visual feedback.

Continue reading

Page 2 of 2