阅读背景:

Angular5 错误: ngModel cannot be used to register form controls with a parent formGroup directive

来源:互联网 

在创建一个表单时,出现了这样的错误:

 

原因是,在最外层的form中使用了 formGroup 指令,但在下面的某个input 插件中,使用了ngModel 指令,但没有加入formControl 指令或 formControlName 属性。原因是,在最外层的form中使用了 f




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: