I have a list that I am displaying using *ngFor vertically.
I need to display this list on 3 columns;
I have tried to use d-flex flex-wrap but this didn't solve the problem. Also I set a fixed width for the div but this gave me a scrolling list.
Here is my code
<div class="d-flex flex-wrap container">
<li *ngFor="let item of list">
<input type="checkbox" [(ngModel)]="item.value" />
<label> {{item.name}} </label>
</li>
</div>
also I have tried to use ngFor on a div, thinking flex-wrap only works on divs but it gave me the same result
<div class="d-flex flex-wrap container">
<div *ngFor="let item of list">
<input type="checkbox" [(ngModel)]="item.value" />
<label> {{item.name}} </label>
</div>
</div>
