title: Property 'xxxx' does not exist on type '{ [key: string]: AbstractControl; }'
body: <pre><code>import { FormGroup } from '@angular/forms';
  
  export class MasterVendorFormContactComponent implements OnInit {
    @Input() formContactGroup: FormGroup;
  // rest of the code 
  }
  
  
  &lt;fieldset [formGroup]="formContactGroup" class="master-vendor-form-contact"&gt;
    &lt;md-input-container class="master-vendor-form-contact__phone"
                        [dividerColor]="formContactGroup.controls.phone?.valid ? 'default' : 'warn'"&gt;
      &lt;input mdInput placeholder="Enter phone" formControlName="phone"&gt;
      &lt;md-hint align="end"
               *ngIf="!formContactGroup.controls.phone?.valid"&gt;
        Vendor phone number must be in (XXX) XXX-XXXX format
      &lt;/md-hint&gt;
    &lt;/md-input-container&gt;
    &lt;!-- Rest of the code --&gt;
  &lt;/fieldset&gt;
  </code></pre>
  
  <p>on compiling this code with aot it gives following error:</p>
  
  <pre><code>angular_app/src/$$_gendir/app/master-vendors/master-vendor-form-contact/master-vendor-form-contact.component.ngfactory.ts (465,73): Property 'phone' does not exist on type '{ [key: string]: AbstractControl; }'.
  angular_app/src/$$_gendir/app/master-vendors/master-vendor-form-contact/master-vendor-form-contact.component.ngfactory.ts (465,143): Property 'phone' does not exist on type '{ [key: string]: AbstractControl; }'.
  angular_app/src/$$_gendir/app/master-vendors/master-vendor-form-contact/master-vendor-form-contact.component.ngfactory.ts (476,77): Property 'phone' does not exist on type '{ [key: string]: AbstractControl; }'.
  angular_app/src/$$_gendir/app/master-vendors/master-vendor-form-contact/master-vendor-form-contact.component.ngfactory.ts (476,147): Property 'phone' does not exist on type '{ [key: string]: AbstractControl; }'.
  </code></pre>
  
  <p>I tried following this approach:</p>
  
  <p><strong>Don’t use form.controls.controlName, use form.get(‘controlName’)</strong></p>
  
  <p>but here I have formContactGroup so it seems not working for me.</p>