rajan-g / angular2-google-recaptcha Goto Github PK
View Code? Open in Web Editor NEWangular2-google recaptcha is a angular2 directive. It provide simple way of configure google recaptcha
angular2-google recaptcha is a angular2 directive. It provide simple way of configure google recaptcha
googlerecaptcha.directive.ts showing error in importing NgModel from '@angular/common'
Hello,
I'm getting the following errors:
EXCEPTION: Error: Uncaught (in promise): Template parse errors:
Can't bind to 'siteKey' since it isn't a known native property ("d="loginContainer" class="container">
<div (setVerified)="setVerified($event)" googlerecaptcha [ERROR ->][siteKey]="siteKey" [theme]='light'>
npm install for this package fails at typings install.
verbose stack Error: [email protected] postinstall: typings install
243 verbose stack spawn ENOENT
243 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:33:16)
243 verbose stack at emitTwo (events.js:106:13)
243 verbose stack at ChildProcess.emit (events.js:191:7)
243 verbose stack at maybeClose (internal/child_process.js:886:16)
243 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
244 verbose pkgid [email protected]
245 verbose cwd /Users/Samir/Desktop/portfolio-app/my-resume
246 verbose Darwin 16.6.0
247 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "angular2-google-recaptcha"
248 verbose node v6.10.2
249 verbose npm v5.0.3
250 error file sh
251 error code ELIFECYCLE
252 error errno ENOENT
253 error syscall spawn
254 error [email protected] postinstall: typings install
254 error spawn ENOENT
255 error Failed at the [email protected] postinstall script.
255 error This is probably not a problem with npm. There is likely additional logging output above.
256 verbose exit [ 1, true ]
Thecaptcha response needs to be transfered to the application layer so that it can be sent to the server-side for verification with google.
The callback function needs to pass this hash to the app layer instead of just passing true.
if(data) {
this.setVerified.emit(data);
}
See pull request #4
Any suggestions for how to turn off recaptcha, or use the special magic key, to prevent e2e tests from breaking?
hi. i want angular2-google-recaptcha in my project and my project is angular 2 (rc5). please upgrade your code and if i use this code, just say me how?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.