I'm currently working with a table in which the td elements are filled with data structured like this:
<td style="width:15%">
<span *ngFor="let org of rowData.organization; last as isLast">
{{org?.name}}<span *ngIf="!isLast">,</span>
</span>
</td>
My challenge is to add an ellipsis to the span element if its character length exceeds 15. I've tried using an ellipsis pipe, but it applies the ellipsis to every element in the array.
Current output: Assistant Surgeon, Assistant Surgeon Pedia..., Assistant Surgeon techn..., Assistant Surgeon
Desired output: Assistant Surgeon, Assistant Surgeon Pediatrician, Assistant Surgeon techn...
Any suggestions on how to achieve this specific ellipsis implementation?