angular_recaptcha 0.0.6

Angular Recaptcha (Dart)

How to use

Add to pubspec.yaml

angular_recaptcha: ^0.0.5

then

pub get

Add to index.html

<script src="https://www.google.com/recaptcha/api.js?render=explicit"></script>

Use it

<angular-recaptcha [(ngModel)]="value" key="YOUR_KEY" auto-render></angular-recaptcha>

More

import 'package:angular2/core.dart';
import 'package:angular_recaptcha/angular_recaptcha.dart';

@Component(
    selector: 'app',
    template: '''
        <angular-recaptcha #recaptcha key="YOUR_KEY" [(ngModel)]="value"></angular-recaptcha>
        ''',
    directives: const [AngularRecaptcha])
class App implements OnInit {
  String value;
}

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  angular_recaptcha: "^0.0.6"

2. Install it

You can install packages from the command line:

$ pub get

Alternatively, your editor might support 'pub get'. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:angular_recaptcha/angular_recaptcha.dart';

About

Google Angular Recaptcha

Author

Email hadrien.lejard@gmail.com Hadrien Lejard

Homepage

github.com/lejard-h/angular_recaptcha

Documentation

www.dartdocs.org/documentation/angular_recaptcha/0.0.6/

Source code (hyperlinked)

www.crossdart.info/p/angular_recaptcha/0.0.6/

Uploader

hadrien.lejard@gmail.com

Share