Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 错误:InvalidPipeArgument:'';对于管道';异步管道&x27;_Angular_Twitter Bootstrap_Bootstrap 4_Angular5 - Fatal编程技术网

Angular 错误:InvalidPipeArgument:'';对于管道';异步管道&x27;

Angular 错误:InvalidPipeArgument:'';对于管道';异步管道&x27;,angular,twitter-bootstrap,bootstrap-4,angular5,Angular,Twitter Bootstrap,Bootstrap 4,Angular5,我在尝试使用angular5中的ng select 1.4.1时遇到了几个问题,如下所示 这是文件.html: <ng-select *ngIf="_listClients" [items]="listClient | async" bindLabel ="nom" bindValue ="id"

我在尝试使用angular5中的ng select 1.4.1时遇到了几个问题,如下所示

这是文件.html:

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

            </ng-select>
第二个错误:

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

有什么想法吗

如何在代码中设置
listClient
?它是可观察的吗?
listClient
很可能是一个对象列表,而不是发出对象的可观察对象。AsyncPipe希望传递一个可观察的。你能分享更多的代码吗,比如你定义的
listClient
@DanielWStrimpel它不是一个可观察到的,这就是为什么我得到了这个错误,现在它被解决了,非常感谢:)@ChrisWhite是的,它不是一个可观察到的,这就是为什么我得到了这个错误,感谢你的评论:)!!你能加上这个作为回答,然后接受它吗。谢谢
ERROR TypeError: Cannot read property 'dispose' of null
at AsyncPipe._dispose