angular-re-captcha
Integrate reCAPTCHA into angularjs with form validation support.
Install
Install via bower:
bower install angular-re-captcha --save
Include the file into your application:
Usage Example
Your can have a look at the example. Basically you have to add reCAPTCHA to your dependencies, configure your key.
angular ;
and use the directive within a form. Make sure to set a ng-model
Submit
API
reCAPTCHAProvider
reCAPTCHAProvider.setPublicKey()
Type: function
Default: null
Sets the PublicKey
reCAPTCHAProvider.setOptions()
Type: function
Default: null
Sets the options, that get passed into the Recaptcha.create call. Here are a list of the available options
reCAPTCHA
reCAPTCHA.setPublicKey()
Type: function
Default: null
Sets the PublicKey
Custom Themes
Custom themes configure recaptcha to use existing elements instead of injecting elements for you. Refer to https://developers.google.com/recaptcha/docs/customization for additional documentation and example widgets.
// Configure the template to use a custom widget.reCAPTCHAProvider;
Contribute
Pull requests are welcome. Please make sure that you include tests in your PR.