angular 6 ERROR TypeError: items.map is not a function
See original GitHub issueHey there, I am using Angular 6 Trying to get the data from the server as this example https://github.com/ng-select/ng-select/blob/master/demo/app/examples/search.component.ts
this is my ng-select :
<ng-select [items]="employees | async" [multiple]="isMultiple" placeholder="Select Employee" [appendTo]="'body'" [(ngModel)]="selectedEmployee" [hideSelected]="true" [loading]="loading" [typeahead]="employeesInput"></ng-select>
I am getting the employees as an observable the same way in the example… but I am getting the error ERROR TypeError: items.map is not a function it is in ng-select.js file, while the items is recieved as a string of my typeahed, but the map is not defined…
and since I am Angular 6 I’ve change the concat as the new RXJS so now it is an operator.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (1 by maintainers)
Top GitHub Comments
same issue here. can you give a bit more info on how to resolve this? some of us are noobs and that sentences does not draw a complete picture. thank you
@bdairy can you provide your final solution? we have the same problem …