4
Answers

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

Rohit Gautam

Rohit Gautam

3y
1.2k
1

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)