Background: I am currently working on an application with tabs; and I\'d like to list the fields / sections that fail validation, to direct the user to look for errors in the r
As @c0bra pointed out in the comments the form.$error
object is populated, it just doesn't like being dumped out as JSON.
Looping through form.$errors
and it's nested objects will get the desired result however.
- {{ key }} errors
- {{ e.$name }} has an error: {{ key }}.
All the credit goes to c0bra on this.
Another option is to use one of the solutions from this question to assign unique names to the dynamically created inputs.