最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
解决angular2在双向数据绑定时[(ngModel)]无法使用的问题
时间:2022-06-25 15:39:14 编辑:袖梨 来源:一聚教程网
angular2在双向数据绑定时[(ngModel)]无法使用,出现的错误是:
Can't bind to 'ngModel' since it isn't a known property of 'input'.
解决办法:
在文件 app.component.ts 中引入ngModel
具体为:
添加两行代码:
import { FormsModule } from '@angular/forms';
和
FormsModule,
位置如下:
相关文章
- 盐神阁知乎搬运工网站最新入口-知乎盐选文章搬运工入口分享 03-06
- 哔咔漫画网页版入口-PicACG官网|二次元漫画免费下载 03-06
- 羞羞漫画登录页面-羞羞漫画官网登录入口 03-06
- wechat网页版快捷登陆-wechat官网一键登录 03-06
- Deepseek官方-Deepseek一键下载 03-06
- 羞羞漫画官网首页登录-羞羞漫画官方登录入口 03-06
