VirtualScroll is not working inside components

Ion-lists with virtualScroll are not rendered inside components.

The same code works wll on a page but not on a component.

I put a text before ion-list the list will be rendered.

Here is my code:

<ion-list  [virtualScroll]="rows" >

<ion-item *virtualItem="let row">
    {{ row.value }}
</ion-item>

</ion-list>
1 Like