How to limit a list and add scroll


#1

Ionic 2

How do I limit the list in quantity of records, to add a roll to continue rolling if necessary?

    <ion-slide>
      
      <ion-list>
        <ion-item-group>
          <ion-item-divider color="light">Group</ion-item-divider>
          <ion-item *ngFor="let g of groups" (click)="group(g)">
            {{g.description}}
            <ion-icon name="checkmark" item-right *ngIf="selected && selected.id === g.id"></ion-icon>
          </ion-item>
        </ion-item-group>
      </ion-list>
</ion-slide>

#2

@wmanesco I use AngularFire library for example, in general this is done on the controller of this view to limit for example by order, or number=10, before you load it it on the view with the ngIf* command

Hope it helps