Angular error: can’t bind to ‘ngmodel’ since it isn’t a known property of ‘input’

This usually happens because App has not registered FormsModule to be used. So just go into your main app.module.ts and add: import { FormsModule } from ‘@angular/forms’; and add the same to imports as well: …

Advertisements