What is the difference between dirty and touched properties of a form control?

  • Dirty indicates interaction, touched indicates modification.
  • Dirty indicates it's required, touched indicates it's optional.
  • Dirty indicates modification, touched indicates interaction.
  • Dirty indicates optional, touched indicates required.
In Angular, the dirty property indicates that a form control has been modified, while the touched property indicates that a form control has been interacted with (e.g., focused or blurred).
Add your answer
Loading...

Leave a comment

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