title: Angular : How to check if some control exist in form or not
body: <p>Below is my code to get a response from the service. Here I am getting a list of employees.</p>
  <p>I need to bind form controls dynamically based on the response of service, my service returning more fields(EmployeeId, Name, Department etc.) than the form has controls. How to skip those which are not used in form control?</p>
  <pre class="lang-ts prettyprint-override"><code>this._employeeService.getEmployeeById(this.employeeId).subscribe((res: Response) =&gt; {
    this.employeeForm.get('FileUploader').setValue(null);
    for (const field in res) {
      this.employeeForm.controls[field].setValue(res[field]);
    }
  });
  
  this.employeeForm = this._fb.group({
    EmployeeId: 0,
    Name: ''
  });
  </code></pre>