Is there any way to use virtual scroll in this particular situation:
<ion-list>
<ion-item-group *ngFor="let group of catalog.groups">
<ion-item-divider sticky>
{{group.name}}
</ion-item-divider>
<ion-item-sliding class="pos-table-item" *ngFor="let product of group.products">
<button ion-item>
{{product.name}}
[...]
I am puzzled at this point have tried multiple combinations. The documentation is using *virtualHeader=“let header” inside the ion-item-divider but in this case I am using ion-item-group together with it that picks data from a different array.
Apparently there’s no solution for this. The docs doesn’t contemplate a solution either.
If you use a flat hierarchy like the example below it works but you loose the ability of using sticky dividers. Not to mention that you gotta have a flat Array of objects so say goodbye to multi-level Array of Objects. That’s a bummer :S
Yeah, the dividers / grouped list alone should be a built-in component…
I’ve reached out to Josh (no response yet) and the Ionic team, and the most recent advice I received is that there isn’t an easy way to do it and that I should try Infinite List instead, which I’m now doing.