You are tasked with building a form that needs to validate the password and confirm password fields are the same. How would you approach implementing this validation?

  • Built-in Angular validation
  • None of the above
  • Perform validation in the template
  • Use a custom validator function
To validate that the password and confirm password fields are the same, you should use a custom validator function to implement custom validation logic.
Add your answer
Loading...

Leave a comment

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