VividCortex / angular-recaptcha

AngularJS directive to add a reCaptcha widget to your form
http://vividcortex.github.io/angular-recaptcha/
MIT License
496 stars 257 forks source link

Reset directive validation when reCaptcha is reset #116

Closed TheSharpieOne closed 8 years ago

TheSharpieOne commented 8 years ago

Resolves #69 and #111. When the service triggers a reset, the directive associated with the widgetid being reset will clear the response on the model and mark the element as invalid (if validation is enabled).

This uses pub/sub to allow the service to notify the directive of the reset. There are several other ways to do this but this was more simple.

iambrosi commented 8 years ago

Thanks @TheSharpieOne !