Skip to content
This repository was archived by the owner on Aug 17, 2021. It is now read-only.

Commit ba287ea

Browse files
committed
Update docs regarding script include
1 parent 6ecec83 commit ba287ea

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

README.md

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,7 @@ See [the demo file](demo/usage.html) for a quick usage example.
4141

4242
- First, you need to get a valid recaptcha key for your domain. Go to http://www.google.com/recaptcha.
4343

44-
- Include the reCaptcha [API](https://developers.google.com/recaptcha/docs/display#AJAX) using this script in your HTML:
45-
46-
```html
47-
<script
48-
src="https://www.google.com/recaptcha/api.js?onload=vcRecaptchaApiLoaded&render=explicit"
49-
async defer
50-
></script>
51-
```
52-
53-
As you can see, we are specifying a `onload` callback, which will notify the angular service once the api is ready for usage.
54-
55-
The `onload` callback name defaults to `vcRecaptchaApiLoaded`, but can be overridden by the service provider via `vcRecaptchaServiceProvider.setOnLoadFunctionName('myOtherFunctionName');`.
56-
57-
- Also include the vc-recaptcha script and make your angular app depend on the `vcRecaptcha` module.
44+
- Include the vc-recaptcha script and make your angular app depend on the `vcRecaptcha` module.
5845

5946
```html
6047
<script type="text/javascript" src="angular-recaptcha.js"></script>

0 commit comments

Comments
 (0)