Angular Form: Run Function on Field Touch, Not Just on Value Changes
I’m working on a form in Angular, and I need to determine if every invalid field has also been touched. This is to provide visual feedback to the user. I currently have a function that checks for invalid controls when the user changes a value, but I’m struggling to handle the case where a user simply touches the controls without changing their values.