I'm doing a website where I have to present the specialties of a chef, the data was collected from the backend and I present them with an ngFor in the following way:
<div *ngFor="let i of item.specialty">
<p style="display: inline-block;"> {{i.name}}, </p>
</div>
As you see add a comma to show the different specialties followed by a comma, the problem is that the last element is also added a comma, How can I control so that the comma does not appear in the last element that brings the ngFor?