错误错误:InvalidPipeArgument:'' for pipe' AsyncPipe'

时间:2018-05-13 21:29:37

标签: angular twitter-bootstrap bootstrap-4 angular5

我尝试在angular5中使用ng-select 1.4.1时遇到了几个问题,如link中那样,

这是文件.html:

 <ng-select  *ngIf="_listClients"
                         [items]="listClient | async"
                          bindLabel ="nom"
                          bindValue ="id"
                        [(ngModel)]="selectedPersonId">

            </ng-select>

第一个问题:使用ng-select的下拉菜单中的scrollBar没有下降,所以我被建议使用管道async in:[items] =&#34; listClient |异步&#34;但是我收到了这个错误:

ERROR Error: InvalidPipeArgument: '[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]' for pipe 'AsyncPipe'
at invalidPipeArgumentError 

和第二个错误:

ERROR TypeError: Cannot read property 'dispose' of null
at AsyncPipe._dispose

任何想法?

0 个答案:

没有答案