rajan-g / angular2-google-recaptcha

angular2-google recaptcha is a angular2 directive. It provide simple way of configure google recaptcha
5 stars 8 forks source link

SiteKey, theme error #1

Open kims901 opened 8 years ago

kims901 commented 8 years ago

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'>

"):

rajan-g commented 8 years ago

Hi Kims, You need to set siteKey value in your component, For refer (https://github.com/rajan-g/angular2-google-recaptcha/blob/master/app/app.component.ts) . after adding this same configuration style, Post your view and component

ashfon commented 7 years ago

I am getting same error, was this resolve? Issue is not with siteKey value, issue is with [siteKey] input.

Error: zone.js:388Unhandled Promise rejection: Template parse errors: Can't bind to 'siteKey' since it isn't a known property of 'div'. ("

borntodesign commented 7 years ago

That normally means you have not declared it properly

geethpw commented 3 years ago

You need to import the

import { NgxCaptchaModule } from 'ngx-captcha';

in app.module.ts