JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q70062F
  • License MIT

Package Exports

  • recaptcha-blackgeeks

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (recaptcha-blackgeeks) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Recaptcha Blackgeeks

This is just very simple Angular 5 component that implements Image-Text Recaptcha.

HTML View

![Image of BlackGeeks-Recaptcha] (https://i.imgur.com/o4clLc6.png)

Installation

Install it from npm:

npm install recaptcha-blackgeeks --save

Usage

Module

...
import { BlackgeeksRecaptchaModule } from 'recaptcha-blackgeeks';
...
 ...
@NgModule({
  imports: [...,BlackgeeksRecaptchaModule]
  })
  ...

View

Use in template like below

 <blackgeeks-recaptcha></blackgeeks-recaptcha>

Methods

To access the methods, use @ViewChild.

Import

import { ViewChild } from '@angular/core';
import { RecaptchaComponent } from 'recaptcha-blackgeeks';

export class RegisterComponent {
  @ViewChild(RecaptchaComponent) captcha: RecaptchaComponent;
}

Usage

You can request a new captcha to be displayed:

this.captcha.reset();

The previous response can be retrieved:

let status = this.captcha.getResponse();