I am working on a project where I need to repeat a card multiple times using ngFor. Since the number of cards will vary each time the page loads, I want to use virtual scrolling to handle any potential overflow. However, I have been struggling to get it to work properly. Here is my latest attempt:
<ion-content id="content">
<ion-card id="card" *ngFor="let event of listOfEvents
[virtualScroll]="listOfEvents" >
<ion-item *virtualItem="let event">
<ion-row>
<ion-col><span class="showDetails">Guests Needed:</span> {{event.guests}} </ion-col><ion-col><span class="showDetails">Cover:</span> {{event.coverCharge}}</ion-col><ion-col><span class="showDetails">Drink Min:</span>{{event.drinkMin}} </ion-col>
</ion-row>
</ion-item>
</ion-card>
</ion-content>