I have a trouble with displaying JSON data in Angular. I successfully send data from backend to frontend (Angular), but I cannot display them.
I tried to simulate a
As far as I can see, you're storing your Object as JSON, but you never parse it. Therefore using
$scope.messages = JSON.parse(res);
instead of
$scope.messages = res;
should fix your problem.
Here is a working JSFiddle version of yours: https://jsfiddle.net/29y61wtg/5/
Note, that this doesn't include a $http call, if you're still having problems after using $http, tell me in the comments.