I'm attempting to compile an array of front-end error objects for every time ngMessages catches a changed input field as invalid.
I'm used to the event-driven formvalidation.io library. Is there any event or function to listen for/adjust respectively in ngMessages?
I'm assuming there must be a function that says "Oh, we have an invalid field... do this now". That's what I'm looking for.
If there is such a function, how would one get the field being validated?
Thanks, folks!
Answer from @charlietfl is correct.
Thank you!
you can watch the form validation object...and any particular properties you want – charlietfl Jan 26 at 21:54