当在input标签上进行双向数据绑定[(ngModel)]的时候出现Can't bind to 'ngModel' since it isn't a known property of 'input'.
在app.module.ts内添加FormsModule
2024-01-15 17:48:22
当在input标签上进行双向数据绑定[(ngModel)]的时候出现Can't bind to 'ngModel' since it isn't a known property of 'input'.
在app.module.ts内添加FormsModule