We have an ion-item-group
with aprox 30 items. It looks like this:
<ion-item-group *ngFor="let module of models, let i = index" [class.highlight]="hightlightStatus[i]">
<ion-item>
<progress value="{{module.progress}}" max="100"></progress>
<span>{{module.progress}}%</span>
</ion-item>
<ion-item>
<ion-card (click)="buttonbarItemIndex=i">
<ion-card-header>
{{breadcrumb}}
</ion-card-header>
<ion-card-content>
{{module.title}}
</ion-card-content>
</ion-card>
</ion-item>
<ion-item *ngIf="hightlightStatus[i]">
<button-bar [target]="module.target"></button-bar>
</ion-item>
</ion-item-group>
On older devices the page does not get loaded. Probably because there are too much DOM Elements to be rendered.
Would be the recommendation to use InfiniteScroll or to replace ion-item
with normal divs
?
As you can see in the code, the ion-item
has ion-card
in it and I think this is not so light weight.
We would not like to use divs
as we are trying to work as semantic as possible.