javascript - Questions about Angular form validation -
trying use ngmessages login page validation. (1) how can make sure error messages(username , password missing) displayed when user click submit button? (2) how block submit button prevent user resubmitting form. thanks
to display error message after submitting form, should <div ng-show="theform.login.$error.required && theform.$submitted"></div>
and submitting once can counter.
here created working plunker.
oops, sorry didn`t pay attention using ngmessages, hope still help
Comments
Post a Comment