I’m trying to investigate why the control is marked as dirty at its initialization and what I see in the browser console is very confusing. The form control is either “dirty” OR “pristine”, depending on how I log information to the console. It’s such a pain, lol. How can this be the case?
ngOnInit(): void {
const control = this.form.get(this.controlName);
console.log('TEST 1', control)
console.log('TEST 2', control.dirty, control.pristine);
}
Result