Angularng-recpatcha无法解决
创始人
2024-10-28 16:01:21
0

使用最新版本的ng-recaptcha并将recaptcha组件包装在一个字面上的数据对象中。

代码示例: 安装ng-recaptcha:

npm install ng-recaptcha --save

在app.module.ts中导入:

import { RecaptchaModule } from 'ng-recaptcha';

@NgModule({ imports: [ RecaptchaModule.forRoot(), // other modules... ], // declarations, providers, etc. })

在组件中使用:

import { RecaptchaComponent } from 'ng-recaptcha';

@Component({ selector: 'app-my-component', template:

, })

export class MyComponent { public myForm: FormGroup; public recaptcha: FormControl;

constructor(private fb: FormBuilder) { this.recaptcha = this.fb.control(null, Validators.required);

this.myForm = this.fb.group({
  recaptcha: this.fb.group({
    recaptcha: this.recaptcha,
  }),
});

} }

相关内容

热门资讯

透视规律!大菠萝789辅助器下... 透视规律!大菠萝789辅助器下载,hhpoker德州辅助(透视)开挂教程(真实有挂)-哔哩哔哩1、很...
据文件显示!wepoker透视... 据文件显示!wepoker透视脚本苹果版,如何下载wpk透视版(透视)详细教程(有挂方法)-哔哩哔哩...
今天下午!智星德州插件2024... 今天下午!智星德州插件2024最新版,wepoker透视脚本网页(透视)推荐教程(新版有挂)-哔哩哔...
现有说明如下!aapoker辅... 现有说明如下!aapoker辅助工具安全吗,wepoker分析(透视)科普教程(新版有挂)-哔哩哔哩...
反观!wpk模拟器是什么,we... 反观!wpk模拟器是什么,wepoker辅助软件视频(透视)有挂教程(有挂详细)-哔哩哔哩1、wep...
事发当天!wepoker高级辅... 事发当天!wepoker高级辅助,cloudpoker辅助(透视)了解教程(有挂详细)-哔哩哔哩1、...
透视有挂!来玩app破解版,哈... 透视有挂!来玩app破解版,哈糖大菠萝能开挂吗(透视)曝光教程(有挂方法)-哔哩哔哩1、这是跨平台的...
据统计!wepoker怎么破解... 据统计!wepoker怎么破解游戏,wepoker正确养号方法(透视)必备教程(揭秘有挂)-哔哩哔哩...
据报道!wepoker插件程序... 据报道!wepoker插件程序激活码,aapoker透视怎么用(透视)曝光教程(有挂工具)-哔哩哔哩...
透视ai!wepoker私人局... 透视ai!wepoker私人局开挂视频,sohoo poker辅助(透视)了解教程(有挂方法)-哔哩...