I am looping my data list and displaying in the view , as spans tags :
<span *ngFor="let d of myData; last as isLast">
{{d.name}}
<span *ngIf="!isLast">,</span>
</span>
As you can see , I am adding a comma '**, betewen items values
this looks like this ::
AAA,BBB,CCC,DDD,
But it happens that my data would be empty : so i want to display some custom string instead : "NO ITEMS"
i wante to handle that in the html part , with pipes
Suggestions ?