The following is a json response returned to angular js for error codes:
{"email":["The email field is required."],"username":["The username field is required."],"password":["The password field is required."]}
I am binding a variable in my controller to the html to display the result:
angular js:
.success(function(data) {
$scope.errors = data;
});
html:
{{ errors }}
The html result of this is:
{"email":["The email field is required."],"username":["The username field is required."],"password":["The password field is required."]}
How do I get rid of the brackets, quotes, ect. so that I see just the data? I feel like this is a silly question, but I can't seem to find a good answer. Thanks!