Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Scroll performance when using ng-template

$
0
0

@Corin wrote:

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.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>