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

Posted jing5990

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Can't bind to 'ngModel' since it isn't a known property of 'input'.相关的知识,希望对你有一定的参考价值。

 angular项目启动报错

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

原因:当前module模块未引入 ‘ngModel‘,  把 FormsModule 添加到 @NgModule 元数据的 imports 数组中即可

技术图片

以上是关于Can't bind to 'ngModel' since it isn't a known property of 'input'.的主要内容,如果未能解决你的问题,请参考以下文章

Can't bind to local 8700 for debugger报错和解决

Template parse errors: Can't bind to 'ngModel' since it isn't a known property of &#

解决“Can't bind to local 8630 for debugger”错误--查杀多余进程

在懒加载的Ionic工程中使用 ionic2-auto-complete 组件:Can't bind to 'dataProvider' since it isn't

Can‘t bind to ‘ngModel‘ since it isn‘t a known property of ‘xxx‘

Can‘t bind to ‘ngModel‘ since it isn‘t a known property of ‘xxx‘