The code below is in a view of main-category.component
<div>
<div *ngFor="let category of categories;">
<app-subcategory>
[name]="category.name">
</app-subcategory>
</div>
</div>
I'd like generate a table with 4 columns and x rows depending the number of items in categories
. Each cell contain the component app-subcategory
.
I don't see the right way to do this. Do you have idea ?
Thanks,