jjzjj

secondPlayer

全部标签

javascript - 从具有 ngIf 指令的输入中获取值时出错

我得到一个异常ErrorTypeErrorandErrorContext单击提交按钮时。如果我将删除ngIf指令它将按异常(exception)情况工作,完整的StackTrace:PlayerNameFormComponent.html:8ERRORTypeError:Cannotreadproperty'value'ofundefinedatObject.eval[ashandleEvent](PlayerNameFormComponent.html:8)athandleEvent(core.js:13547)atcallWithDebugContext(core.js:15056