New to Angular. Working on getting cards to show up in proper order in a bootstrap css layout.
The order they are currently in is
- A F
- B G
- C H
- D I
- E J
When I squeeze the page down to a phone screen testing responsiveness, everything is in order A-J.
I would like the order to be like so, when in two column view:
- A B
- C D
- E F
- G H
- I J
I thought I might find my solution in this answer, or on this page, or in this answer, but my layout remains as is.
Here's what I'm working with:
<div class="card-columns mt-1 mb-5">
<div class="card" *ngFor="let group of form.formGroup">
<!-- <div class="card"> -->
<div class="card-header">
<h5 class="text-uppercase">
{{group.title}}
<span class="float-right">
<i class="fas fa-edit text-primary" (click)="open(content,group)"></i>
</span>
</h5>
</div>
<div class="card-body">
<div class="row">
<div class="col-sm-12" *ngFor="let control of group.fields">
<label class="text-uppercase"><strong>{{control.label}}</strong></label>
<div>
<button type="button" class="btn btn-lg btn-primary" disabled>{{datapersonal[control.model_property]}}</button>
<br><br>
</div>
</div>
</div>
</div>
</div>
</div>
My cards aren't misaligned, like other people have problems with. It's just that they are in the wrong order.