valor-software / ng2-select

Angular based replacement for select boxes
http://valor-software.github.io/ng2-select/
MIT License
675 stars 587 forks source link

bind data to ng-select after user search for a value #927

Open harshamaddineni opened 6 years ago

harshamaddineni commented 6 years ago

I didn't have any initial data to bind to drop down. once user searches for a string by using keyup event, i am making an api call to get data back. but the dropdown is not binding with data. i don't want to get all organizations on page load.

below is my html code <ng-select #select [items]="organizations |async" [disabled]="disabled" (data)="refreshValue($event)" (selected)="selected($event)" (removed)="removed($event)" (keyup)="findOrganization($event)" placeholder="Enter organization name">

optimistex commented 6 years ago

Duplicate of #929