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">
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">