import { FormsModule } from '@angular/forms';. 并在NgModule的imports中引入FormsModule. 否则会报错:. Can't bind to 'ngModel' since it isn't ...
確定! 回上一頁