I'm trying to use the card group functionality of Bootstrap 4 with Angular ngFor
.
Here is the HTML I have for now, but I can't find how to break to a new line after 3 items have been inserted:
<div class="row card-group">
<div *ngFor="let presentation of presentations" class="col-4 card">
<a [routerLink]="['/presentation', presentation._id]">{{presentation.title}}</a>
</div>
</div>
I've seen other answer saying to use the clearfix class, but this has not worked so far for me.
card-group
? It doesn't allow wrapping the way a row>col does. – Sicularrow
is already same height because BS4 uses flexbox. You don't need to iterate therow
. – Sicular