my API returns this value:
{"id":1,"name":"Test"}
In Angular I did this call to retrieve that value:
$scope.supplier = Suppliers.query({supplierId: $routeParams.id});
But now in my template I do this:
{{supplier.name}}
Even {{ supplier }} does not give me anything.
but this is empty. Why is this the case?
Thanks!