在input中使用[(ngModel)]报错:Can't bind to 'ngModel' since it isn't a known property of 'input'
<input type="text" placeholder="请输入股票代码" [(ngModel)]="stock">
解决办法:在app.module.ts里添加FormsModule即可
wx584411d751930 博主文章分类:B-JavaScript ©著作权
在input中使用[(ngModel)]报错:Can't bind to 'ngModel' since it isn't a known property of 'input'
<input type="text" placeholder="请输入股票代码" [(ngModel)]="stock">
解决办法:在app.module.ts里添加FormsModule即可
使用 *ngFor *ngIf 时报错Can't bind to 'ngForOf' since it isn't a known property of 'div'
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M