How do I mark an Angular 2 Control as dirty in my code?
When I do it like this:
control.dirty = true;
Cannot set property dirty of #<AbstractControl> which has only a getter
You should use the
markAsDirty method, like this:
This will also mark all direct ancestors as dirty to maintain the model.