Currently, I am iterating through my data list and displaying it in the view using spans:
<span *ngFor="let d of myData"> {{d.name}}, </span>
As shown above, I am adding a comma ',' at the end of each item to ensure a coherent display.
This results in the following appearance:
AAA, BBB, CCC, DDD,
However, I am facing an issue with **the last comma that I want to automatically remove.
Any suggestions on how to achieve this?