I obtained a JSON response in the following structure; https://jsonplaceholder.typicode.com/posts
My goal is to format the table to resemble the attached image structure.
However, my current implementation is displaying repeating user IDs. How can I adjust my code to achieve the desired output structure?
<table datatable [dtOptions]="dtOptions" [dtTrigger]="dtTrigger" class="row-border hover">
<thead>
<tr>
<td>Sl No</td>
<th>Title</th>
<th>Body</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let record of dataString;let i=index">
<td>{{record.userId}}</td>
<td>{{record.title}}</td>
<td>{{record.body}}</td>
</tr>
</tbody>
</table>