When you change the NgModel field, it automatically changes model.prisitne to true.
When you submit a form, it does not change the "original", not a question, this is not a mistake.
But in my case, I show errors when the “untouched” is true, and when I submit the form, I need to show validation errors, and I think that when you submit the form, we can say that the fields in this form were touching, because you cannot submit an invalid form. But in Angular2, it works differently.
So, any way to say that the controls / form fields are touched (pristine = true) in the code / component?
let email:AbstractControl = this.frm.form.controls['email'];
Set the email address "prisitne" true.
source share