Scroll performance when using ng-template


#1

Hi,

I am using ng-template to load a list conditionally, but for some reason the scroll is not smooth as before.

  <ng-template [ngIf]="isMobile || isTablet">
    <ng-template ngFor let-item [ngForOf]="items">
      <ion-row>
          <ion-col class="rank" col-1>
            <ion-item-divider class="data-divider rank-divider rank-no-border" style="height: 50px; padding-left: 40px;">
              <h2 ion-text *ngIf="item && item.rank" color="black">
                {{item.rank}}
                <img [src]="item.icon" width="16px" height="16px">
              </h2>
            </ion-item-divider>
          </ion-col>
        </ion-row>
      </ng-template>
    </ng-template>

Any idea?

Thanks.