title: Getting Object is possibly 'null'. in Angular template file
body: <p>In my Angular app, I'm getting the following error:</p>
  
  <blockquote>
    <p>Object is possibly 'null'.</p>
  </blockquote>
  
  <p>The problem is that I'm getting this error not because of some typescript code, but because of this html template:</p>
  
  <pre><code>  &lt;form [formGroup]="form"&gt;
      &lt;timepicker [formControlName]="'myControl'"&gt;&lt;/timepicker&gt;
    &lt;/form&gt;
  
    &lt;br&gt;
    &lt;button class="btn btn-succes" (click)="form.get('myControl').enable()"&gt;Enable Control&lt;/button&gt;
    &lt;button class="btn btn-warning" (click)="form.get('myControl').disable()"&gt;Disable Control&lt;/button&gt;
    &lt;br&gt;&lt;br&gt;
  
    &lt;pre class="alert alert-info"&gt;Time is: {{ form.get('myControl').value }}&lt;/pre&gt;
  </code></pre>