Check out example codes for "Uncaught Error: Template parse errors: Can't bind to 'ngModel'". It will help you in understanding the concepts better.

Code Example 1

Try to import FormModule an app.module.ts file

import { FormsModule } from '@angular/forms'

@NgModule({
  declarations: [
    ....
  ],
  imports: [
    ...,
    FormsModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Learn ReactJs, React Native from akashmittal.com