Trying to achieve a specific layout for an object in an array using ng-For and ng-If. Here is the desired recovery code, and here's what I've attempted so far in my code snippet enter image description here:
<div class="recovery-code" *ngFor="let x of recoveryCode?.recoveryCodes; let i = index;">
<b>{{ x }}</b>
<br *ngIf="i%5 === 0">
</div>
I'm encountering issues trying to add space between the elements of the array. I have attempted using array.join(", ");
but it hasn't worked as expected. Any advice on how to solve this problem would be greatly appreciated.