errors.ts:42错误错误:未捕获(在承诺中):TypeError:无法读取属性'形式'未定义的

时间:2017-04-26 18:19:23

标签: angular typescript login

在我的日志记录组件上收到一个错误无法解决它!

Here's the error

And i have the following code

1 个答案:

答案 0 :(得分:0)

检查拼写。您的引用是#loginForm="ngForm",但您使用的是!logInForm.form.valid