turinggroup / angular-validator

Powerful, flexible and simple Angular validation!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

async validation

dzfranklin opened this issue · comments

Would it be possible to add an option for the validator function to return a promise so that server-side calls can be made?

Thanks,
Daniel

Would you want this on each element or the entire form?

I have a username field in a form and would like to validate it for uniqueness with the server before the form can be submitted, preferably only on blur so my server doesn't get too much work

Ok makes sense. Would you like to contribute this feature?

I've been using angular for a few months, and aren't particularly good at it. I'll try though if you don't have the time.

Give it a shot, its the best way to learn.