Angular: Can't bind to 'ngModel' since it isn't a known property of 'input'问题解决
当最初使用[(ngModel)]做双向绑定时,如果遇见Angular: Can’t bind to ‘ngModel’ since it isn’t a known property of 'input’问题解决办法:在你的app.module中添加如下代码即可:import { FormsModule, ReactiveFormsModule } from ‘@angular/form...