Angular · Middle · Question 36 of 75

Where should a "passwords must match" validator be attached?

Explanation

A group-level validator receives the group and can read both controls. The error then appears in form.errors, not in the individual controls.

Further reading

Problem with a question

Angular · Middle · question 36

Test yourself

Take the Angular · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz