<div class="row">
<div class=" col-xl-8 offset-xl-2">
<div class=" row">
<div *ngFor="let pokemon of pokemons | searchFilter: filterName:'name'; let i = index " class=" col-md-6">
<div style="border-radius: 15px 50px;" class="card mb-3 bg-{{getType(pokemon)}}"
[routerLink]="['/view', pokemon.name]">
<div class="card-body">
<div class="row">
<div class="col-7 col-sm-8">
<h3 class="card-title">{{pokemon.name | titlecase}}</h3>
<span *ngFor="let type of pokemon.types "
class="badge border rounded-pill me-1 bg-{{getType(pokemon)}}">
{{type.type.name | titlecase}}
</span>
</div>
<div class="col-5 col-sm-4">
<img src="https://pokeres.bastionbot.org/images/pokemon/{{pokemon.id}}.png"
class="img-fluid" alt="...">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm text-center">
<button class="btn draw-border" (click)="loadMore()">
<div class="spinner-border spinner-border-sm" role="status" *ngIf="loading"></div>
{{loading ? 'Loading...' : 'Load More'}}
</button>
</div>
</div>
</div>
This is my code nothing special just a simple ngfor , currently the ngfor dynamically creates about 30 cards (don't know exactly) before the button to load more appears , I'm using infinite scrolling btw , so can I limit the number of cards created to about say 10-15 before ,and then the button to load more appears , is this doable?