我使用带有ngFor的简单离子列表来显示离子3和放大器列表中的项目。工作正常。然后我用离子列表&现在我收到以下错误:
未捕获的TypeError:无法设置属性' length'在VirtualScroll.readUpdate上为null
代码段:
<ion-list [virtualScroll]="anArray" approxItemHeight="50px">
<div *virtualItem="let arrayItem">
//other code
Array declaration:
public anArray: any[];
In constructor:
this.anArray = [];
After network response:
this.anArray = data.result;