title: How to initialize form group in Angular 4?
body: <p>I have the following ngOnInit method:</p>
  
  <pre><code>ngOnInit() {
      this.countries = this.sharedService.getCountries();
      this.shopService.getCurrentShopFromCache().then(shop =&gt; {
          this.shop = shop;
          this.myFormGroup = this.fb.group({
              name: [this.shop.name[this.shop.defaultLanguage.code], [Validators.required]],
              address: [this.shop.address.address],
              city: [this.shop.address.city],
              state: [this.shop.address.state],
              country: [this.shop.address.country, [Validators.required]],
              phone: [this.shop.phone],
              email: [this.shop.email],
              website: [this.shop.social.website],
              twitter: [this.shop.social.twitter],
              facebook: [this.shop.social.facebook],
              instagram: [this.shop.social.instagram],
              foursquare: [this.shop.social.foursquare]
          });
      }
      );
  }
  </code></pre>
  
  <p>I'm getting </p>
  
  <pre><code>formGroup expects a FormGroup instance. Please pass one in.
  </code></pre>
  
  <p>Where am I wrong?</p>
  
  <p>UPDATE:</p>
  
  <pre><code> &lt;form *ngIf="shop" class="m-form m-form--fit m-form--label-align-right" [formGroup]="myFormGroup" novalidate&gt;
                         ... 
  </code></pre>