You are tasked with implementing a sign-up form where the password field must match the confirm password field. Which approach would you use to validate this in Angular?

  • Built-in Validators
  • Custom Validator Function
  • Service-based Validation
  • Two-way data binding with ngModel
To validate that the password and confirm password fields match, you should use a Custom Validator Function in Angular to implement custom validation logic.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *