在angular中使用ngModel时出现了一个报错error NG8002: Can't bind to 'ngModel' since it isn't a known property of 'input'.
只要在app.module.ts中引入FormsModule,然后在@NgModule中imports中应用上就OK了,主要还是用vue用习惯了。。。。
import {FormsModule} from '@angular/forms'