title: How to bind angular FormArray to ngx-select-dropdown
body: <p>I'm writing angular7 single page web application using <strong>ReactiveForms</strong>.
  I need to list collection of customers in a searchable dropdown list and for that I'm trying to use <code>ngx-select-dropdown</code> (<a href="https://www.npmjs.com/package/ngx-select-dropdown" rel="nofollow noreferrer">https://www.npmjs.com/package/ngx-select-dropdown</a>)</p>
  
  <p>My customer class looks like below </p>
  
  <pre><code>export class Customer{
    public id:number;
    public name:string;
  
    constructor(cusId:number, cusName:string){
      this.id = cusId;
      this.name = cusName;
    }
  }
  </code></pre>
  
  <p>My component class looks like this</p>
  
  <pre><code>import { Component, OnInit } from '@angular/core';
  import { FormGroup, FormBuilder, FormArray } from '@angular/forms';
  
  @Component({
    selector: 'my-app',
    templateUrl: './app.component.html',
    styleUrls: [ './app.component.css' ]
  })
  export class AppComponent implements OnInit {
    public myForm: FormGroup;
    constructor(private formBuilder: FormBuilder) {
    }
    ngOnInit() {
      this.myForm = this.formBuilder.group({
        selectedCustomer: [],
        customers: this.formBuilder.array([
          new Customer(0, "Andrew"),
          new Customer(1, "Steve"),
          new Customer(2, "Frank"),
          new Customer(3, "Jimmie")
        ])
      })
    }
  }
  </code></pre>
  
  <p>My HTML template looks like this</p>
  
  <pre><code>&lt;div [formGroup]="myForm"&gt;
    &lt;ngx-select-dropdown formControlName="customers"&gt;&lt;/ngx-select-dropdown&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>What I want is customers dropdown list with following options.</p>
  
  <ol>
  <li>dropdown should be searchable.</li>
  <li>dropdown should be single select.</li>
  <li>when an item is selected, "selectedCustomer" form control should be updated.
  (see the "Single Select Dropdown" example in this demo: <a href="https://manishjanky.github.io/ngx-select-dropdown/" rel="nofollow noreferrer">https://manishjanky.github.io/ngx-select-dropdown/</a>)</li>
  </ol>
  
  <p>I've added a sample project in <a href="https://stackblitz.com/edit/angular-lkpwtd?embed=1&amp;file=src/app/app.component.ts" rel="nofollow noreferrer">stackblitz</a></p>