I am getting around 1000 contacts array from api.I want to display it in contact card. However, I just want to display maximum 5 contact card in each row. I also, want to need a pagination like angular material paginator for this.
<div class="col" *ngFor="let yuvak of unAssignedYuvaks | paginate: { itemsPerPage: 30, currentPage: p }">
<mat-card class="example-card mt-2">
<mat-card-header>
<mat-card-title> {{yuvak.cnt_first_name + ' ' + yuvak.cnt_last_name}} </mat-card-title>
<mat-card-subtitle> <i class="i-contact nb-phone"></i>{{yuvak.cnt_mobile_no}}</mat-card-subtitle>
<mat-card-subtitle> <fa-icon [icon]="faAt"></fa-icon> {{yuvak.email}}</mat-card-subtitle>
</mat-card-header>
<img mat-card-image src="{{thumbnailImg}}{{yuvak.profile_picture}}" alt="Photo of a {{yuvak.cnt_first_name + ' ' + yuvak.cnt_last_name}}">
<mat-card-content>
</mat-card-content>
<mat-card-actions>
<button mat-button></button>
<button mat-button></button>
</mat-card-actions>
</mat-card>
</div>
this is my card div. I need something like this