Angular · Junior · Question 47 of 75

How do you show a validation error only after the user has touched the field?

Explanation

Controls track touched (blurred), dirty (changed) and errors (e.g. { required: true }). Showing errors right away on an untouched field is annoying for users.

Further reading

Problem with a question

Angular · Junior · question 47

Test yourself

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

Take this quiz