Can anyone help me to solve this issue?
Orderdata coming from the api does not seem to be an array so ngFor cant do anything with it??
If you put {{orderData | json}} in your html you can see if the template gets anything. And if so, then the answer on so is wrong
Maybe replace the object assign to
This.orderData=[res] to prove the point?
Especially if the endpoint gives u one element
And then change the code not to use ngFor because an ngFor on one element is pointless if the api per definition only gives one element
If the api gives multiple element but not wrapped in array if it is one, then change the endpoint or build the conversion in the frontend
@Tommertom Thanks bro. It’s worked.