javascript - Reset google recaptcha in angular application? -
i'm using google's recaptcha in angular project, works expected can't figure out how reset it.
i have form in user sends data , after successful post form reset form user can send mail.
in controller have following method:
var resetform = function () { //reset models //reset flags //here reset recaptcha }
how can function inside angular controller ?
if using version 1
recaptcha.reload();
if using version 2
grecaptcha.reset();
through selectors :
jquery('#recaptcha_reload').click();
Comments
Post a Comment