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

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -