Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

login canot ngModel #13

Closed
wosoftware opened this issue Jun 22, 2020 · 2 comments
Closed

login canot ngModel #13

wosoftware opened this issue Jun 22, 2020 · 2 comments

Comments

@wosoftware
Copy link

在login.component.ts直接定义变量并赋值,在页面上,{{}}取值可以显示。
但是双向绑定Ngmodel指令,console页面显示
Can't bind to 'ngModel' since it isn't a known property of 'input'.

@bknds
Copy link
Owner

bknds commented Jun 23, 2020

pages.module.ts中引用FormsModule

@wosoftware
Copy link
Author

非常感谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants