title: how can I install correctly ngx-recaptcha on my project?
body: <p>I'm doing a form to register an Ad, but when I installed the recaptcha it doesn't works Ok, I couldn't reset it or reload it, etc, I've followed the tutorial to the letter and nothing, this is the page, meanly <a href="https://www.npmjs.com/package/ngx-captcha" rel="nofollow noreferrer">enter link description here</a></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ngx-recaptcha2 #captchaElem
    [siteKey]="siteKey"
    (reset)="handleReset()"
    (expire)="handleExpire()"
    (load)="handleLoad()"
    (success)="handleSuccess($event)"
    [useGlobalDomain]="false"
    [size]="size"
    [hl]="lang"
    [theme]="theme"
    [type]="type"
    formControlName="recaptcha"&gt;
  &lt;/ngx-recaptcha2&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import { BrowserModule } from '@angular/platform-browser';
  import { NgModule } from '@angular/core';
  import { RouterModule } from '@angular/router';
  
  import { HttpClientModule } from '@angular/common/http';
  import { FormsModule,ReactiveFormsModule } from "@angular/forms";
  import { NgxCaptchaModule } from 'ngx-captcha';
  
  @NgModule({
    declarations: [
      CreateadsComponent
    ],
    imports: [
      NgxCaptchaModule,
      ......</code></pre>
  </div>
  </div>
  </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>this.aFormGroup = this.formBuilder.group({
        recaptcha: ['', Validators.required]
      });</code></pre>
  </div>
  </div>
  </p>
  
  <p>it throws this error:</p>
  
  <p>ERROR in ../node_modules/ngx-captcha/lib/components/base-recaptcha.component.d.ts(13,44): error TS1039: Initializers are not allowed in ambient contexts.
  ../node_modules/ngx-captcha/lib/components/invisible-recaptcha.component.d.ts(13,31): error TS1039: Initializers are not allowed in ambient contexts.
  ../node_modules/ngx-captcha/lib/components/recaptcha-2.component.d.ts(13,56): error TS1039: Initializers are not allowed in ambient contexts.</p>
  
  <p>and nothing works fine later, just show correct tag in the page, but I can't do anything with it, no reset, no validate... 
  Somebody can help me please.</p>