星云创建自定义注册

时间:2020-08-22 10:07:25

标签: angular forms nebular

因此,我必须创建与星云标准注册略有不同的注册。我创建了自定义表单验证,并且由于此标准注册系统对我不起作用。我认为我必须使用HttpClient手动发送请求到后端。但是我无法实现它,因为我正在使用NbRegisterComponent扩展我的寄存器组件。这是我的代码:

<a href="<?php echo $row_rsContactDetails['contactEmail']; ?>">SOME TEXT</a>

所有人都在这里工作,但是当我尝试添加构造函数时,它会失败。

1 个答案:

答案 0 :(得分:0)

请试试这个:

constructor(private fb: FormBuilder, service: NbAuthService, @Inject(NB_AUTH_OPTIONS) options:{}, cd: ChangeDetectorRef, router: Router) {
    super(PARAMS_HERE);
}

如果它不起作用,请尝试第二种方法:

constructor(private fb: FormBuilder, private YourCustomAuthService: YourCustomAuthService, service: NbAuthService, @Inject(NB_AUTH_OPTIONS) options:{}, cd: ChangeDetectorRef, router: Router) {
    super(PARAMS_HERE);
}
相关问题