lc-captcha for angular
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo add demo alert Nov 24, 2016
dist add demo alert Nov 24, 2016
src init commit Nov 23, 2016
.gitignore init commit Nov 23, 2016
README.md Update README.md Nov 24, 2016
liteServerConfig.js init commit Nov 23, 2016
package.json init commit Nov 23, 2016
webpack.config.js
webpack.config.prod.js init commit Nov 23, 2016

README.md

Luosimao Captcha For AngularJS

Getting started

This is a directive for AngularJS ^1.2.0. And ease the way to display a luosimao captcha on your page.

If you plan to hack on the directives or want to run the example locally, first thing to do is to install NPM dependencies:

npm install

Launch the demo

To run the demo page, just run

npm start

and open your browser on http://localhost:8080/.

Example Html

<lccaptcha lc-key="Your-Data-Site-Key" lc-width="100%" lc-verified="vm.captcha_verified(resp, LUOCAPTCHA)">
</lccaptcha>
captcha_verified(response, LUOCAPTCHA) {
    this.captcha = response;
    this.luocaptcha = LUOCAPTCHA;
}

reset() {
    this.luocaptcha.reset();
}

See demo/* for more information.

Dependence

  • jQuery

Usage

Use in your project:

npm install git://github.com/yoyokko/lc-captcha-angular.git --save

angular.module('app', ['lccaptcha'])

or

const ngLcCaptcha = require('lc-captcha-angular').ngLuosimaoCaptcha;
angular.module('app, [ngLcCaptcha])

LICENSE

MIT License