# angular-re-captcha **Repository Path**: mirrors_deckar01/angular-re-captcha ## Basic Information - **Project Name**: angular-re-captcha - **Description**: google recaptcha service for angularjs - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-04-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # angular-re-captcha [![Bower version][bower-image]][bower-url] [![Build Status][travis-image]][travis-url] > Integrate [reCAPTCHA](http://www.google.com/recaptcha) into angularjs with form validation support. ## Install Install via bower: ```shell bower install angular-re-captcha --save ``` Include the file into your application: ```html ``` ### Usage Example Your can [have a look at the example](example/example.html). Basically you have to add reCAPTCHA to your dependencies, configure your key. ```javascript angular.module('myApp', ['reCAPTCHA']) .config(function (reCAPTCHAProvider) { // required: please use your own key :) reCAPTCHAProvider.setPublicKey('---KEY---'); // optional: gets passed into the Recaptcha.create call reCAPTCHAProvider.setOptions({ theme: 'clean' }); }); ``` and use the directive within a form. Make sure to set a ng-model ```html
``` ## 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](https://developers.google.com/recaptcha/docs/customization) ## Contribute Pull requests are welcome. Please make sure that you include tests in your PR. ## License [MIT License](http://en.wikipedia.org/wiki/MIT_License) [bower-url]: http://badge.fury.io/bo/angular-re-captcha [bower-image]: https://badge.fury.io/bo/angular-re-captcha.png [travis-url]: http://travis-ci.org/mllrsohn/angular-re-captcha [travis-image]: https://secure.travis-ci.org/mllrsohn/angular-re-captcha.png?branch=master