Answer the question
In order to leave comments, you need to log in
What is the difference between markAsDirty and markAsTouched in Angular?
In Angular, in ReactiveForm, I set the value to one control from the form via .setValue(someValue)
As I understand it, in order to start the process of validating the set value after that, you need to execute the markAsDirty() and markAsTouched() methods of the same control? Or just one of them? What is the difference between them and when to use which one?
Answer the question
In order to leave comments, you need to log in
In Angular, in ReactiveForm, I set a value to one control from the form through .setValue(someValue)
As I understand it, in order to start the validation process of the set value after that, you need to execute the markAsDirty () and markAsTouched () methods of the same control
What is the difference between them and when to use which one?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question