HTML File -
<tr *ngFor="let data of consultant; let id = index">
<!-- <td>{{ id + 1 }}</td> -->
<td>{{ data.name }}</td>
<td *ngFor="let client of allClients; let i = index;">
<p *ngIf="data.id === client.consultants.id">
{{client.name}}{{i === allClients.length - 1 ? '' : ', ' }}
</p>
</td>
<td>{{ data.address }}</td>
<td>{{ data.email }}</td>
</tr>
Problem ->
I get output like mentioned in the image, and I don't know how can I remove this white space from here, kindly help me to set my output
[ERROR ->]{{client.name.replace(/\s+/g,' ').trim()}}{{i === allClients.length - 1 ? '' : ', ' }} ")
– payal_harwani Sep 09 '21 at 08:22