-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An angular variable/constant as sidekey? #45
Comments
Hi @myonara ! I'm afraid there is no way to configure this on a global level for now. This will be a great feature, though. I will try and add it in the next couple of weeks, but you are free to submit a PR for it if you want to! |
Hi @DethAriel , thanks for the immediate answer. I will try to get the Recpatcha running with the fixed sitekey and my node.js backend first. So currently I can wait for the enhancement. |
Add an if statement to make sure this.subscription is defined. This ensures safe component destruction in case it hasn't been fully initialized yet. Closes DethAriel#46 chore(package): remove dev dependency on `@types/grecaptcha` chore(demo): add clarifying comments for local debugging docs(contrib): add contribution guidelines closes DethAriel#42 docs(readme): remove rename notice from readme Consumers had enough time to get learn about this change feat(component): add the ability to specify component props globally Now consumers can specify some of the `<re-captcha>` properties globally, including `siteKey`. closes DethAriel#45 docs(demo): add example for specifying properties globally chore(package): bump version to 2.2.0 fix(component): fix server-side rendering Change the RecaptchaLoaderService to render the recaptcha script tag only in a browser environment. Closes DethAriel#34 BREAKING CHANGE: Angular v2.x.x is no longer supported due to dependency on Platform capabilities that were added in [v4.0.0-rc.1](https://github.com/angular/angular/blob/master/CHANGELOG.md#features-20) docs(demo): fix active tab reference for global config example chore(package): Future-proofing for Angular v5 build(package): fix builds by tweaking `tslint` Update `tslint` dependency strategy to be tilde instead of caret to overcome potential breakage when new rules are added chore(package): bump version to 3.0.0
I want to use the recaptcha multiple times, test it on my development with a different key as in production environment. In the latest angular 4 project created with angular/cli there is the following code within src/environment/environment.ts:
Later for production there will be another code. My question is: How to use this constant in the sidekey-Parameter of ng-recaptcha? It would be hard to exchange all occurences for production code.
The text was updated successfully, but these errors were encountered: