Before using the ngModel directive in a two-way data binding, you must import the FormsModule and add it to the NgModule's imports list.
ngModel
FormsModule
[R] Data Binding
Last updated 6 years ago