Closed MicroDreamIT closed 1 year ago
The ErrorMessage
component is only used for display. You can set initial-errors
on the form as documented here.
You can set them with onMounted
or pass the prop directly and it should work. Let me know if that doesn't work for you.
If you are not looking for initial errors then you can use the $ref
API to set errors dynamically, or use the composition which makes this even easier.
I am trying to develop a pretty big form, I using Nuxt3 and Vee-validation version 4. I am trying to get error from the server but for the limitation of documentation without example and resources in the internet I am having trouble to solve this problem.
And here is my server response is look like on console
Now how am I supposed to display this on the field of email
ErrorMessage
tag? and how am I supposed to look at errorsBag?