This is a simple form with a login input box and it will validate
logins against GitHub login names, so you can try it out (don't abuse
GitHub API thought :-)).
The way it works is rather straightforward: this is just a standard
ngModel validator that will do $http request to determine validation
results (assuming that a field is not valid waiting for the server's
response).
I hope it will get you started, but don't hesitate to ask if you've
got any further questions.
Also, if anyone got an idea on how to improve it I would be really
grateful for any input.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ang...@googlegroups.com
Hi thanks for this exemple , from this i clearly understand how to make it for a field but how about validating a complete form with let's say 10 fields using only one request and then display errors on each field based on the server response ?
I guess the directive need to be at the form level , but how to access each form input child to add errors message ?