在input中使用[ngModel]报错:error NG8002: Can't bind to 'ngModel' since it isn't a known property of 'input'
解决办法:在module.ts中添加import
和providers
import { FormsModule } from '@angular/forms';
2023-12-20 12:41:22
在input中使用[ngModel]报错:error NG8002: Can't bind to 'ngModel' since it isn't a known property of 'input'
解决办法:在module.ts中添加import
和providers
import { FormsModule } from '@angular/forms';