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

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -