Can't bind to 'ngModel' since it isn't a known property of 'input'.

重读官方文档发现 https://angular.cn/docs/ts/latest/tutorial/toh-pt1.html

在app.module.ts中将其引用进去。
本文介绍了解决Angular开发过程中遇到的Can't bind to 'ngModel' since it isn't a known property of 'input'错误的方法。通过在app.module.ts文件中正确引入相关模块来解决这一常见问题。
Can't bind to 'ngModel' since it isn't a known property of 'input'.

重读官方文档发现 https://angular.cn/docs/ts/latest/tutorial/toh-pt1.html

在app.module.ts中将其引用进去。
转载于:https://www.cnblogs.com/kuangniaokuang/p/6088888.html
863
2523
1万+
345
977
362
283
1244

被折叠的 条评论
为什么被折叠?