Engineering scalable systems, cloud-native applications, and AI-powered solutions.

Solution- Can't bind to 'ngModel' since it isn't a known property of 'input'.

Just add FormsModule in app.module.ts file of your Angular application.

Ankush Jain

Ankush Jain

Lead Software Engineer (VP) | Software Architect

Published Apr 25, 2019Updated Nov 24, 2026

Just add FormsModule in app.module.ts file of your Angular application.

typescript
import { FormsModule } from '@angular/forms';
[...]
@NgModule({
imports: [
[...]
FormsModule
],
[...]
})

Have feedback or thoughts?

Discuss this article or share it on Twitter / GitHub.