Following JSON item not displaying in angularjs.
error = {
"name": [
"The name field is required."
],
"salary.salary_id": [
"The salary.salary id field is required."
]
}
When I am trying to display error using angularjs,
{{error.name[0]}}
output will be The name field is required
.
When I am trying to display second one,
{{error.salary.salary_id[0]}}
It display nothing, I hope the problem with .
operator placed in key name.
How can I solve this?