From 1d9b3fd7f10f90cb3d3e0659a266fbe84e196a17 Mon Sep 17 00:00:00 2001 From: Ruslan Arkhipau Date: Fri, 24 Jun 2022 22:19:14 -0700 Subject: [PATCH] chore(docs): add Angular compatibility table closes #259 --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 245fa94..7ba39ac 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ A simple, configurable, easy-to-start component for handling reCAPTCHA v2 and v3 - [Input Options](#api-options) - [Events](#api-events) - [Methods](#api-methods) +1. [Angular version compatibility](#angular-versions) 1. [Examples](#examples) - [Configuring the component globally](#example-global-config) - [Specifying a different language](#example-language) @@ -87,7 +88,7 @@ export class MyApp { ``` ```typescript -// boot.ts +// main.ts import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; import { MyAppModule } from "./app.module.ts"; @@ -196,6 +197,22 @@ Besides specifying these options on the component itself, you can provide a glob validation failed, and you need the user to re-enter the captcha. - `execute()`. Executes the invisible recaptcha. Does nothing if component's size is not set to "invisible". See [Invisible reCAPTCHA developers guide](https://developers.google.com/recaptcha/docs/invisible#js_api) for more information. +## Angular version compatibility + +| `ng-recaptcha` version | Supported Angular versions | +| -------------------------------------------------------------------------------- | ---------------------------------------------------- | +| `10.x.x` | `14.x.x` | +| `9.x.x` | `13.x.x` | +| `8.x.x` | `12.x.x` | +| `7.x.x` | `11.x.x` | +| ⬆️ Starting with `ng-recaptcha@7`, only one version of Angular will be supported | +| `6.x.x` | `6.x.x \|\| 7.x.x \|\| 8.x.x \|\| 9.x.x \|\| 10.x.x` | +| `5.x.x` | `6.x.x \|\| 7.x.x \|\| 8.x.x` | +| `4.x.x` | `6.x.x \|\| 7.x.x` | +| `3.x.x` | `4.x.x \|\| 5.x.x` | +| `2.x.x` | `2.x.x \|\| 4.x.x` | +| `1.x.x` | `2.x.x` | + ## Examples ### Configuring the component globally [(see in action)](https://dethariel.github.io/ng-recaptcha/global-config)