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

Allow to configure the name of the onload function #25

Closed
iambrosi opened this issue Dec 20, 2014 · 1 comment
Closed

Allow to configure the name of the onload function #25

iambrosi opened this issue Dec 20, 2014 · 1 comment

Comments

@iambrosi
Copy link
Contributor

For example:

<script src="https://www.google.com/recaptcha/api.js?onload=myOnloadFunction&render=explicit" async defer></script>
var app = angular.module('myModule', ['vcRecaptcha']);

app.config(['vcRecaptchaServiceProvider', function(vcRecaptchaServiceProvider) {
    vcRecaptchaServiceProvider.setOnloadFunction('myOnloadFunction');
}]);
@TheSharpieOne
Copy link
Contributor

What is the need/use case for this? To prevent overlap on the global/window scope?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants