Can’t bind to ‘ngModel’ since it isn’t a known property of ‘input’

Yes, that’s it. In the app.module.ts file, I just added:

import { FormsModule } from '@angular/forms';

[...]

@NgModule({
  imports: [
    [...]
    FormsModule
  ],
  [...]
})

Leave a Comment