I have prepared service which looks the similiar to this:
[{
"Id": 1,
"productName": "Cart",
},
{
"Id": 2,
"productName": "Hammer",
}]
I can use *ngFor in the view and go throught all items it works fine, but
Is there equivalent of *ngFor only if I have one item (not array)?:
{ "Id": 1, "productName": "Cart", }
In case of array I tryed to do this (it did not work):
<div *ngFor="let item of items; let i = index;#last = last">
<div *ngIF="#last">
</div>
</div>
Thank you for any advice.