How do I programmatically set an Angular 2 form control to dirty? : <p>How do I mark an Angular 2 Control as dirty in my code?</p>

<p>When I do it like this:</p>

<pre><code>control.dirty = true;
</code></pre>

<p>I get this error:</p>

<pre><code>Cannot set property dirty of #&lt;AbstractControl&gt; which has only a getter
</code></pre>
