Rohit Gautam

Rohit Gautam

  • NA
  • 24
  • 3.8k

How can I convert number to string while using *ngFor in html code

Sep 2 2021 11:56 AM

I have data, which I have bind in html table,
Order ID is number type, I want to convert this into string before binding to table in Angular 10.

Example :

  <tr  *ngFor="let rec of requestList | paginate:{itemsPerPage: 10, currentPage:page} | filter:searchedKeyword">

                  <td>{{rec.id}}</td> //convert this into string

 </tr>

 


Answers (4)