angular - Uncaught TypeError: Cannot set property 'length' of null at VirtualScroll.readUpdate -


i using simple ion-list ngfor display items in list in ionic 3 & working fine. used virtual scroll ion-list & getting following error:

uncaught typeerror: cannot set property 'length' of null @ virtualscroll.readupdate

code snippet:

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


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -