How to use the ng-recaptcha.RecaptchaModule.forRoot function in ng-recaptcha

To help you get started, we’ve selected a few ng-recaptcha examples, based on popular ways it is used in public projects.

github SharebookBR / sharebook-frontend / src / app / app.module.ts View on Github external
FacilitatorNotesComponent,
    MainUsersComponent,
    PrivacyPolicyComponent
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    HttpClientModule,
    FormsModule,
    ReactiveFormsModule,
    AppConfigModule,
    Ng2SmartTableModule,
    NgbModule.forRoot(),
    NgbModalModule,
    ImageUploadModule,
    RecaptchaModule.forRoot(),
    RecaptchaFormsModule,
    Ng2ImgMaxModule,
    NgxMaskModule.forRoot(),
    InputSearchModule,
    BrowserAnimationsModule,
    ToastrModule.forRoot()
  ],
  providers: [
    AuthGuardUser,
    BookService,
    CategoryService,
    AuthenticationService,
    ContactUsService,
    GoogleAnalyticsService,
    AddressService,
    UserService,
github unosquare / passcore / src / Unosquare.PassCore.Web / ClientApp / app / app.module.ts View on Github external
ChangePasswordComponent,
    DialogOverview,
    FooterComponent
  ],
  entryComponents: [DialogOverview],
  imports: [
    AppRoutingModule,
    BrowserAnimationsModule,
    BrowserModule,
    FormsModule,
    FlexLayoutModule,
    HttpClientModule,
    MaterialModule,
    MatDialogModule,
    MatSnackBarModule,
    RecaptchaModule.forRoot(),
    RecaptchaFormsModule,
    ReactiveFormsModule,
    RouterModule
  ],
  exports: [ ],
  providers: [
    { provide: RECAPTCHA_LANGUAGE, useFactory: () => window['config'].recaptcha.languageCode },
]
})
export class AppModule { }
github visual-knight / platform-community-edition / apps / visual-knight / src / app / modules / user / user.module.ts View on Github external
AccountManagementComponent,
    UserManagementComponent
  ],
  providers: [
    {
      provide: RECAPTCHA_SETTINGS,
      useValue: { siteKey: environment.recaptchaKey } as RecaptchaSettings
    },
    UserService
  ],
  imports: [
    CommonModule,
    SharedModule,
    ClipboardModule,
    RouterModule.forChild(routes),
    RecaptchaModule.forRoot(),
    RecaptchaFormsModule,
    MatTabsModule
  ]
})
export class UserModule {}
github intershop / intershop-pwa / src / app / shared / forms / components / captcha-v2 / captcha-v2.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      declarations: [CaptchaV2Component],
      imports: [RecaptchaModule.forRoot(), TranslateModule.forRoot()],
      providers: [{ provide: CAPTCHA_SITE_KEY, useValue: captchaSiteKey }],
    }).compileComponents();
  }));
github intershop / intershop-pwa / src / app / pages / registration-page / captcha / captcha.component.spec.ts View on Github external
beforeEach(async(() => {
        TestBed.configureTestingModule({
            declarations: [CaptchaComponent],
            imports: [RecaptchaModule.forRoot()]
        })
            .compileComponents();
    }));
github WISE-Community / WISE / src / main / webapp / site / src / app / login / login.module.ts View on Github external
MatCardModule,
  MatDividerModule,
  MatFormFieldModule,
  MatInputModule,
  MatProgressBarModule
];

@NgModule({
  imports: [
    CommonModule,
    FlexLayoutModule,
    FormsModule,
    LoginRoutingModule,
    ReactiveFormsModule,
    materialModules,
    RecaptchaModule.forRoot(),
    RecaptchaFormsModule
  ],
  declarations: [
    LoginComponent,
    LoginHomeComponent,
    LoginGoogleUserNotFoundComponent,
    LoginComponent
  ],
  exports: [
    LoginComponent
  ]
})
export class LoginModule { }
github EreckGordon / angular-universal-pwa-starter / src / client / app / shared / auth / auth.module.ts View on Github external
SignInComponent,
        CreateAccountComponent,
        RequestPasswordResetComponent,
        ResetPasswordComponent,
        AccountManagementComponent,
        ChangePasswordComponent,
        DeleteAccountComponent,
        ConfirmDeleteAccountDialog,
        LinkEmailAndPasswordToAccountComponent,
    ],
    imports: [
        CommonModule,
        CustomMaterialModule,
        ReactiveFormsModule,
        RouterModule.forChild(routes),
        RecaptchaModule.forRoot(),
        RecaptchaFormsModule,
        JsonLdModule,
    ],
    providers: [
        AuthGuard,
        AuthService,
        {
            provide: RECAPTCHA_SETTINGS,
            useValue: globalRecaptchaSettings,
        },
    ],
    entryComponents: [ConfirmDeleteAccountDialog],
})
export class AuthModule {}
github SharebookBR / sharebook-frontend / src / app / components / contact-us / contact-us.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      declarations: [ContactUsComponent],
      imports: [
        FormsModule,
        ReactiveFormsModule,
        NgxMaskModule.forRoot(),
        RecaptchaModule.forRoot(),
        RecaptchaFormsModule,
        AppConfigModule,
        RouterTestingModule
      ],
      providers: [HttpClient, HttpHandler, AlertService]
    }).compileComponents();
  }));
github DethAriel / ng-recaptcha / examples / app / basic-demo.main.ts View on Github external
import { NgModule } from '@angular/core';
import { BrowserModule }  from '@angular/platform-browser';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

import { RecaptchaModule } from 'ng-recaptcha';

import { BasicDemoComponent } from "./basic-demo.component";

@NgModule({
  bootstrap: [BasicDemoComponent],
  declarations: [BasicDemoComponent],
  imports: [BrowserModule, RecaptchaModule.forRoot()],
})
export class DemoModule { }

platformBrowserDynamic().bootstrapModule(DemoModule);
github DethAriel / ng-recaptcha / examples / app / forms-demo.main.ts View on Github external
import { BrowserModule } from '@angular/platform-browser';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';

import { RecaptchaModule } from 'ng-recaptcha';
import { RecaptchaFormsModule } from 'ng-recaptcha/forms';

import { FormsDemoComponent } from "./forms-demo.component";

@NgModule({
  bootstrap: [FormsDemoComponent],
  declarations: [FormsDemoComponent],
  imports: [
    RecaptchaModule.forRoot(),
    RecaptchaFormsModule,
    BrowserModule,
    FormsModule,
  ],
})
export class DemoModule { }

platformBrowserDynamic().bootstrapModule(DemoModule);

ng-recaptcha

Angular component for Google reCAPTCHA

MIT
Latest version published 3 months ago

Package Health Score

80 / 100
Full package analysis

Popular ng-recaptcha functions