Can't bind to 'ngModel' since it isn't a known property of 'input'
在你的app.module.ts文件中导入FormsModule.
import { FormsModule } from '@angular/forms';
[...]
@NgModule({
imports: [
[...]
FormsModule
],
[...]
})
在你的app.module.ts文件中导入FormsModule.
import { FormsModule } from '@angular/forms';
[...]
@NgModule({
imports: [
[...]
FormsModule
],
[...]
})