I am facing an issue with displaying brand names in a row of divs containing product information. Some products have a brand name, while others do not. My goal is to maintain consistent spacing regardless of whether there is a brand name present.
So far, I have attempted using ngIf and the hidden directive, but neither has yielded the desired outcome.
<div *ngFor="let product of products">
<h5 class="product-brandname" [hidden]="!product.brandname">{{product.brandname}}</h5>
<img/>
etc...
</div>