angular_recaptcha 0.1.3

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 66

Angular Recaptcha (Dart)

How to use

Add to pubspec.yaml

# If you are running angular `v5`
angular_recaptcha: ^0.1.1
# If you are still running angular `v4`
# angular_recaptcha: ^0.0.8
# If you are still running angular `v2` or `v3`,
# then you need to use: 
# angular_recaptcha: "0.0.6"` 

then

pub get

Add to index.html

Deprecated Adding the script tag is no more necessary

<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>

Options

Support ngModel for Form validation.

@Inputs

  • String size: Support "normal" or "compact"
  • String key: Your sitekey
  • String theme: Support "light" or "dark"
  • String type: Support "image" or "audio"
  • bool autoRender: will render the captchat automatically when ready
  • String tabindex

@Outputs

  • expire: notify when the token is expired, we also set value to null

Getter

  • value: get the value of the captcha

Functions

  • render(): manually render the captcha
  • reset(): manually reset the captcha

More documentations

More

import 'package:angular/angular.dart';
import 'package:angular_recaptcha/angular_recaptcha.dart';

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

0.1.3

  • Dart 2 and Angular 5 stable

0.0.10

  • Deprecated

    • Adding the script tag is no more necessary
  • Breaking Changes

    • num render() is now returning a Future, Future<num> render()

0.0.9

  • Add documentation
  • fix ddc
  • Breaking Changes
    • If you want to use ngModel you have to import formDirectives from angular_forms

0.0.8

  • update value when expire

0.0.7

  • Upgraded to angular v4.0.0
  • Added Changelog

0.0.1

  • Initial version

Use this package as a library

1. Depend on it

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


dependencies:
  angular_recaptcha: ^0.1.3

2. Install it

You can install packages from the command line:

with pub:


$ 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';
  
Version Uploaded Documentation Archive
0.1.3 Aug 7, 2018 Go to the documentation of angular_recaptcha 0.1.3 Download angular_recaptcha 0.1.3 archive
0.1.2 May 3, 2018 Go to the documentation of angular_recaptcha 0.1.2 Download angular_recaptcha 0.1.2 archive
0.1.0 Apr 24, 2018 Go to the documentation of angular_recaptcha 0.1.0 Download angular_recaptcha 0.1.0 archive
0.0.10 Dec 28, 2017 Go to the documentation of angular_recaptcha 0.0.10 Download angular_recaptcha 0.0.10 archive
0.0.9 Dec 7, 2017 Go to the documentation of angular_recaptcha 0.0.9 Download angular_recaptcha 0.0.9 archive
0.0.8 Sep 21, 2017 Go to the documentation of angular_recaptcha 0.0.8 Download angular_recaptcha 0.0.8 archive
0.0.7 Jul 12, 2017 Go to the documentation of angular_recaptcha 0.0.7 Download angular_recaptcha 0.0.7 archive
0.0.6 May 19, 2017 Go to the documentation of angular_recaptcha 0.0.6 Download angular_recaptcha 0.0.6 archive
0.0.5 Mar 16, 2017 Go to the documentation of angular_recaptcha 0.0.5 Download angular_recaptcha 0.0.5 archive
0.0.4 Feb 12, 2017 Go to the documentation of angular_recaptcha 0.0.4 Download angular_recaptcha 0.0.4 archive

All 13 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
44
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
70
Overall:
Weighted score of the above. [more]
66
Learn more about scoring.

We analyzed this package on Oct 10, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.12.4

Platforms

Detected platforms: web

Primary library: package:angular_recaptcha/angular_recaptcha.dart with components: html, js.

Maintenance suggestions

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use angular_recaptcha.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.46.0 <3.0.0
angular ^5.0.0 5.0.0
angular_forms ^2.0.0 2.0.0
dart_browser_loader ^0.0.3 0.0.5
js ^0.6.0 0.6.1+1
Transitive dependencies
analyzer 0.32.6 0.33.0
angular_ast 0.5.6
angular_compiler 0.4.0
args 1.5.0
async 2.0.8
build 0.12.8 1.0.1
build_config 0.3.1+3
built_collection 4.0.0
built_value 6.1.4
charcode 1.1.2
code_builder 3.1.3
collection 1.14.11
convert 2.0.2
crypto 2.0.6
csslib 0.14.6
dart_style 1.1.3 1.2.0
fixnum 0.10.8
front_end 0.1.4+2 0.1.6
glob 1.1.7
html 0.13.3+3
intl 0.15.7
json_annotation 1.2.0
kernel 0.3.4+2 0.3.6
logging 0.11.3+2
matcher 0.12.4
meta 1.1.6
package_config 1.0.5
path 1.6.2
plugin 0.2.0+3
pub_semver 1.4.2
pubspec_parse 0.1.2+2
quiver 2.0.0+1
source_gen 0.9.1+3
source_span 1.4.1
stack_trace 1.9.3
string_scanner 1.0.4
typed_data 1.1.6
utf 0.9.0+5
watcher 0.9.7+10
yaml 2.1.15