You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The module looks interesting. But when looking at the instructions is not actually clear how to set it up.
See below:
import{RecaptchaModule}from'ng2-recaptcha';import{BrowserModule}from'@angular/platform-browser';
@NgModule({bootstrap: [MyApp],declarations: [MyApp],imports: [BrowserModule,RecaptchaModule.forRoot(),// Keep in mind the "forRoot"-magic nuances!],})exportclassMyAppModule{}
There you bootstrap and declare MyApp which is never imported in this module.
(By the way, forRoot did not do it for me. I get Property 'forRoot' does not exist on type 'typeof ReCaptchaModule' error. I can raise a separate issue with more information if that'd help).
You declare a new component and then export MyApp class. But at the end of this example you bootstrap your AppModule which is never imported in the example.
Can you please check on that? I've been trying to use it and I'm not sure what I'm missing.
So if you can have the instructions corrected, that'd be awesome.
Thanks.
Cheers!
The text was updated successfully, but these errors were encountered:
On the forRoot issue - could you please open a separate bug? Please, include all relevant information (Angular version, TS version, webpack/systemjs, ...)
Hi,
The module looks interesting. But when looking at the instructions is not actually clear how to set it up.
See below:
There you bootstrap and declare
MyApp
which is never imported in this module.(By the way,
forRoot
did not do it for me. I getProperty 'forRoot' does not exist on type 'typeof ReCaptchaModule'
error. I can raise a separate issue with more information if that'd help).And then here:
You declare a new component and then export
MyApp
class. But at the end of this example you bootstrap yourAppModule
which is never imported in the example.Can you please check on that? I've been trying to use it and I'm not sure what I'm missing.
So if you can have the instructions corrected, that'd be awesome.
Thanks.
Cheers!
The text was updated successfully, but these errors were encountered: