Assuming this is your question:
I wonder if there is a plugin that works inside the html code in this case.
Use the component plugin ng-recaptcha for Angular 2+. Works perfectly on Ionic.
Add the module to your file app.module.ts
(or similar):
import { RecaptchaModule } from 'ng-recaptcha';
import { BrowserModule } from '@angular/platform-browser';
import { MyApp } from './app.component.ts';
@NgModule({
bootstrap: [MyApp],
declarations: [MyApp],
imports: [
BrowserModule,
RecaptchaModule.forRoot(), //importante
],
})
export class MyAppModule { }
And then, in your html templates, state it as follows:
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
template: '<re-captcha (onResolve)="resolved($event)" siteKey="CHAVE_DO_SEU_SITE"></re-captcha>',
})
export class MyApp {
onResolve(captcha : string) {
console.log(`Token captcha ${captcha}:`);
}
}
Where CHAVE_DO_SEU_SITE is obtained through the reCAPTCHA Google website.
While this link may answer the question, it is best to include the essential parts of the answer here and provide the link for reference. Replies per link only can be invalidated if the page with the link is changed. - Of Revision
– UzumakiArtanis
@Stormwind added due implementation to assist the requester.
– djejaquino
Good answer, it seems much more complete =)
– UzumakiArtanis