I get data in the form of array [ 'one', 'two', 'three', 'four', 'five', 'six'] I want to display it in tabular format as follows,
<table>
<caption> Numbers:</caption>
<tr>
<td>one</td>
<td>two</td>
<td>three</td>
</tr>
<tr>
<td>four</td>
<td>five</td>
<td>six</td>
</tr>
</table>
Can above template dynamically generated using ngFor & ngIf?
So at each ( index % 3 ) = 0 we will draw new row but how do we do that in HTML with angular directives?
The trick here is the incoming array may have any random number of strings.