Can‘t bind to formControl since it isn‘t a known property of input错误消息的处理
试图给input标签页施加formControl这个Directive的时候,出现如下错误:
Can’t bind to ‘formControl’ since it isn’t a known property of ‘input’.
解决办法:导入ReactiveFormsModule :
import { ReactiveFormsModule } from '@angular/forms';
加入app module的imports区块里:
之后语法错误消失:
更多Jerry的原创文章,尽在:“汪子熙”:
Can‘t bind to formControl since it isn‘t a known property of input错误消息的处理相关推荐
- ng: Can't bind to 'ngModel' since it isn't a known property of 'input'. - Angular 6
[出现的问题]ng: Can't bind to 'ngModel' since it isn't a known property of 'input'. [解决方法]导入 FormsModule ...
- Angular中提示:Can't bind to 'ngModel' since it isn't a known property of 'input'
场景 在Angular项目中使用[(ngModel)]双向数据绑定时提示: Can't bind to 'ngModel' since it isn't a known property of 'in ...
- 【Angular 4】Can't bind to 'ngModel' since it isn't a known property of 'input'
问题描述 在双向数据绑定时[(ngModel)]无法使用,出现的错误是: Can't bind to 'ngModel' since it isn't a known property of 'inp ...
- 解决Angular里面报错:error NG8002: Can‘t bind to ‘ngModel‘ since it isn‘t a known property of ‘input‘.
以上是报错内容([(ngModel)]双向绑定失效) 解决办法:在module.ts中添加 import { FormsModule } from '@angular/forms';imports: ...
- 关于 SAP Commerce Cloud 启动时报 Address already in use - bind 的错误消息
今天我本地的 Commerce Cloud 启动不了了: 错误消息: Address already in use: bind 成功启动的话,tomcat 服务器日志,有 Server startup ...
- Can‘t bind to ‘ngForOf‘ since it isn‘t a known property of ‘xxx‘
今天遇到一个问题 提示Can't bind to 'ngForOf' since it isn't a known property of 'div' 检查了一下module配置发现是缺少了Commo ...
- Cant bind to ngModel since it isnt a known property of input.ngtsc(-998002) app.component.ts(8, 7):
angular2在双向数据绑定时[(ngModel)]无法使用,出现的错误是: Cant bind to ngModel since it isnt a known property of input ...
- Angular报错error NG8002: Can‘t bind to ‘XXX‘ since it isn‘t a known property of ‘XXX-XX‘
一.报错: error NG8002: Can't bind to 'isTemplate' since it isn't a known property of 'create-home'. 1. ...
- Can't bind to 'ngModel' since it isn't a known property of 'pl-select'.
当新建模块,引用一个组件时,报错Can't bind to 'ngModel' since it isn't a known property of 'plx-select'. 解决: 查询官网文档可 ...
最新文章
- 程序的内存分配之堆和栈的区别
- C++这三点对你很重要
- discuz x2.5插件开发傻瓜图文教程,用demo说话
- Tomcat启动项目没问题,网页一片空白
- Strust2初之体验
- [Oracle] SQL*Loader 详细使用教程(5)- 典型例子
- Julia : Array !, [1,2] !=[1 2]'
- 最值得收藏的 算法分析与设计 全部知识点思维导图整理(北大慕课课程)
- 新词发现-helloNLP
- 四十个鹏城春夏,一场数字繁花
- 学术论文写作方法和技巧
- windows下,配置apache2.4.39执行typhon生成的cgi程序
- 学习笔记10--CAN总线技术
- 「大数据成神之路」第三版更新完毕
- 非平衡电桥电阻计算_非平衡电阻电桥等效电阻的初等解析
- 10000+门店的蜜雪冰城,帮你找回软件赚钱的初心
- Excel VBA工程密码破解程序 (绝对可以破解)
- HTML初步认识和一些简单常用属性
- 联通的营收比电信还少千亿,并且差距还越拉越大了
- java excel 写入与下载实现 (解决乱码问题)