After attempting to code the sample in Angular, I realized it wasn't what I was looking for.
<table>
<th >Number</th>
<th >Merchant Name</th>
<th >Last Order Total</th>
<th >Last Order Date</th>
<hr>
<tr *ngFor="let item of topFiveActiveMerchant; index as i;">
<td>{{i+1}}</td>
<td>{{item.merchant_name}}</td>
<td>{{item.merchant_name}}</td>
<td>{{item.created_date | date:'dd/MM/yyyy h:mm a'}}</td>
</tr>
</table>
I intended for it to look like this https://i.stack.imgur.com/8foa3.png
but unfortunately, mine ended up looking like https://i.stack.imgur.com/Yf1rj.png