In my component file, I have an arrayData containing 4 datas, and I am trying to display them in two columns across two rows.
<div class="row">
<div class="col-md-6" *ngFor="let cat of myArrayData; let index=index">
<div class="card">
<a href="#" >
<img [src]="cat.pictureURL"
/>
</a>
</div>
</div>
</div>
Unfortunately, my current code is not working as expected; I want the data to be displayed in two rows with two columns each. Any suggestions on how to achieve this?