There seems to be an issue with a JSON item not displaying correctly in AngularJS.
error = {
"name": [
"The name field is required."
],
"salary.salary_id": [
"The salary.salary id field is required."
]
}
When attempting to display the error using AngularJS,
{{error.name[0]}}
The output will be The name field is required
.
However, when trying to display the second error message,
{{error.salary.salary_id[0]}}
It does not display anything, possibly due to the .
operator in the key name.
What would be the best way to solve this issue?