I am having trouble organizing my data using the *ngFor loop. I would like to have three items displayed per row when using ngFor. I attempted to use indexing, but it only resulted in one item per row.
<div class="container">
<div class="row">
<div class="mb-3 card-deck text-center">
<div class="card mb-4 box-shadow" *ngFor="let product of item.product;">
<div class="card-header">
<h4 class="my-0 font-weight-normal">{{ product.name }}</h4>
</div>
<div class="card-body">
<img src="{{ product.imagePath}}" class="img-thumbnail" alt="{{ product.name }}">
<p class="lead">{{ product.msg }} {{ product.msg2 }}</p>
<a role="button" class="btn btn-lg btn-block btn-primary" routerLink="product-details">More...</a>
</div>
</div>
</div>
</div>
</div>
Any assistance provided would be greatly appreciated. Currently, my stack includes:
Angular-cli version 6.1.0
bootstrap 4