控制台上出现以下错误几次,但我不知道是什么原因引起的。它工作但错误一直出现在控制台上
UserComponent.html:43 ERROR CONTEXT DebugContext_
View_UserComponent_0 @ UserComponent.html:43
UserComponent.html:43 ERROR TypeError: Cannot read property 'email' of undefined
at Object.eval [as updateDirectives] (UserComponent.html:43)
at Object.debugUpdateDirectives [as updateDirectives] (core.js:14648)
at checkAndUpdateView (core.js:13795)
at callViewAction (core.js:14146)
at execComponentViewsAction (core.js:14078)
at checkAndUpdateView (core.js:13801)
at callViewAction (core.js:14146)
at execEmbeddedViewsAction (core.js:14104)
at checkAndUpdateView (core.js:13796)
at callViewAction (core.js:14146)
at execComponentViewsAction (core.js:14078)
at checkAndUpdateView (core.js:13801)
at callWithDebugContext (core.js:15049)
at Object.debugCheckAndUpdateView [as checkAndUpdateView] (core.js:14586)
at ViewRef_.webpackJsonp.../../../core/esm5/core.js.ViewRef_.detectChanges (core.js:11570)
线路被控错误
<input type="email" class="form-control border-input" placeholder="Email..." name="inputEmail" [ngModel]="userEdit.email" [required]="true" [email]="true" #email="ngModel">
感谢您的帮助