title: Cannot find control with unspecified name attribute in angular 6 form builder
body: <p>I got this error message when trying to update the grid table with the HTML file.</p>
  
  <p>Here I have used static data for the table to display and imported from other component which displays the primeng table and I have added an update button with a function which redirects to another page for updating of data.</p>
  
  <p>The issue is seen in the first line in the HTML file i.e; [formGroup]="myvehicle"</p>
  
  <p>I have tried checking with a different form group name but still the issue is same.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import { Component, OnInit } from '@angular/core';
  import {Router, ActivatedRoute, Params} from '@angular/router';
  import { FormBuilder, FormGroup } from '@angular/forms';
  
  @Component({
    selector: 'app-crud',
    templateUrl: './crud.component.html',
  })
  export class CrudComponent implements OnInit {
    myvehicle: FormGroup;
    display: boolean;
    id: number;
    vin: any;
    year: number;
    brand: string;
    color: string;
    vehicle: any;
    Data: any;
  
    constructor(private activatedRoute: ActivatedRoute, private fb: FormBuilder) {
     }
  
    ngOnInit() {
      this.myvehicle = this.fb.group({
      vin: [''],
      year: [''],
      brand: [''],
      color: ['']
    });
      this.vehicle = [
        {
         id: 1 , vin: 'dsad231ff' , year : 2012 , brand: 'VW' , color: 'Orange'
        },
        {
          id: 2 , vin: 'gwregre345' , year : 2011 , brand: 'Audi' , color: 'Black'
        },
        {
          id: 3 , vin: 'h354htr' , year : 2005 , brand: 'Renault' , color: 'Gray'
        },
        {
          id: 4, vin: 'j6w54qgh' , year : 2003 , brand: 'BMW', color: 'Blue'
        },
        {
          id: 5, vin: 'hrtwy34' , year : 1995 , brand: 'Mercedes' , color: 'Orange'
        }
      ];
      debugger
      this.activatedRoute.paramMap
      .subscribe( params =&gt; {
      this.id = +params.get('id');
      });
  
        this.vehicle.forEach(element =&gt; {
          if (element.id === this.id) {
              this.Data = element;
                }
        });
        this.myvehicle.patchValue({
          vin: this.Data.vin,
          year: this.Data.year,
          brand: this.Data.brand,
          color:  this.Data.color
        });
    }
  
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;form [formGroup]="myvehicle"&gt;
  &lt;label &gt;Vin:&lt;/label&gt;
  &lt;input type="text" [formControlName]="vin" &gt;&lt;br&gt;&lt;br&gt;
  &lt;label &gt;Year:&lt;/label&gt;
  &lt;input type="text" [formControlName]="year" &gt;&lt;br&gt;&lt;br&gt;
  &lt;label &gt;Brand:&lt;/label&gt;
  &lt;input type="text" [formControlName]="brand" &gt;&lt;br&gt;&lt;br&gt;
  &lt;label &gt;Color:&lt;/label&gt;
  &lt;input type="text" [formControlName]="color" &gt;&lt;br&gt;&lt;br&gt;
  &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>