Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular2-google-recaptcha

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular2-google-recaptcha

angular2-google-recaptcha is a simple congigurable angular2 directive

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Angular2 Google Recaptcha

The sources for this package are in (https://github.com/rajan-g/angular2-google-recaptcha) repo. Please file issues and pull requests against that repo.

##Usage npm install angular2-google-recaptcha ###1.In index.html page include following script

    <script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit"
           async defer>

###2.component file use like below

    import {Component} from 'angular2/core';
    import {GoogleRecaptchaDirective} from '../directives/googlerecaptcha.directive';
    
    @Component({
        selector : 'my-app',
        directives: [GoogleRecaptchaDirective],
        template:  `
            <div  (setVerified) = "setVerified($event)" googlerecaptcha [siteKey] = "siteKey" [theme] = 'theme' ></div>
    `    
    })
    export class AppComponent {
        public verified : any;   
        public siteKey: string = "sitekey";//example: 6LdEnxQTfkdldc-Wa6iKZSelks823exsdcjX7A-N
        public theme: string = "light";//you can give any google themes light or dark
        setVerified(data) {
            console.log(data) // data will return true while successfully verified 
        }
    }
   

Keywords

FAQs

Package last updated on 28 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc