I need to implement ngFor
for 10 different components.
Here's an example of what I'm trying to achieve:
<ion-slide class="page-slide" *ngFor="let item of slideArr">
<ion-card class="page-slide-card">
<ion-card-content> {{item.title}}
<component of number x></component of number x>
</ion-card-content>
</ion-card>
</ion-slide>
I want each of the 10 components to load on screen without using ngIf
. Is there another way to accomplish this?