I would like to display the records in a matrix way so that my actual output will look as below.
Lorium 001
Lorium 002
Lorium 003
----------
Ipsum 001
Ipsum 002
Ipsum 003
Currently it is generating in a one line as below.
Lorium
001
002
003
Ipsum
001
002
003
Code snippet and also please review StackBlitz working demo
<div class="container">
<div class="row" *ngFor="let element of data">
<div class="col s4">
<mat-form-field class="">
<input matInput type="text" value={{element.value}} readonly>
</mat-form-field>
</div>
<div class="sub-collection">
<div class="col s4" *ngFor="let subElement of element.sizes">
<mat-form-field class="">
<input matInput type="text" value={{subElement.subValue}} readonly>
</mat-form-field>
</div>
</div>
</div>
</div>