Ng2-select: Dynamic list values

Created on 20 May 2016  Â·  17Comments  Â·  Source: valor-software/ng2-select

I'm trying to create a select drop down that populates based off of an http request.

Relevant code is
public clients: any[] = [];

ngOnInit() {
    this._clientListService.getClients()
      .subscribe(res => {
        this.clients = res;
        console.log(this.clients)
      })
  }
<ng-select [allowClear]="true"
              [items]="clients"
              (data)="refreshValue($event)"
              placeholder="Please select a client">
</ng-select>

However, the dropdown options are blank. Populating this on a