I have created a bootstrap grid page and it's working as I want on desktop screen.
My actual problem is when I use mobile, I can't get how to reorder my cards in right way.
Here's my logic
<div class="row">
<div *ngFor="let col of [1,2]; let index=index" class="col-12 col-sm-6 col-xl-6">
<div *ngFor="let card of cards; let indexC=index" class='col-sm-12' >
<app-expend [card]="card" *ngIf="indexC%2===index"></app-expend> //card[1] = Hi1
</div>
</div>
</div>
The reason why I can't use a row with all colums inside is that When I expand other columns don't shift.
Here's a sample
What I expect is having column on mobile in this order
Hi1 Hi1
Hi2 Hi3
Hi3 Instead of Hi5
Hi4 Hi2
Hi5 Hi4
Hi6 Hi6
And in desktop ( already done ) :
Hi1 Hi2
Hi3 Hi4
Hi5 Hi6
the code should looks like something like this
<div class="row">
<div *ngFor="let card of cards; let indexC=index" class='col-sm-12' >
<app-expend [card]="card"></app-expend> //card[1] = Hi1
</div>
</div>