Writing and Testing Custom Angular Validators: The ‘Passwords Matching’ Use Case

Imagine you are implementing a subscription form and you ask the user to type a password… and then to re-type it just to make sure. You may want to give the user some feedback if he typed a different password the second time, right?
One way of resolving that is to write a custom validator.

Link: https://dzone.com/articles/writing-and-testing-custom-angular-validators-the?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev