{"id":525,"hash":"5c66998c51ff248f188e2c7485f0b0625478d65842a6680275578148f613d019","pattern":"Angular error: &quot;Can&#39;t bind to &#39;ngModel&#39; since it isn&#39;t a known property of &#39;input&#39;&quot;","full_message":"I'm using Angular 4 and I am getting an error in the console:\n\n  Can't bind to 'ngModel' since it isn't a known property of 'input'\n\nHow can I resolve this?","ecosystem":"npm","package_name":"angular","package_version":null,"solution":"In order to use two-way data binding for form inputs you need to import the FormsModule package in your Angular module.\n\nimport { FormsModule } from '@angular/forms';\n\n@NgModule({\n    imports: [\n         FormsModule      \n    ]\n\nEDIT\n\nSince there are lot of duplicate questions with the same problem, I am enhancing this answer.\n\nThere are two possible reasons\n\nMissing FormsModule, hence Add this to your Module,\n\nimport { FormsModule } from '@angular/forms';\n\n@NgModule({\n    imports: [\n        FormsModule      \n    ]\n\nCheck the syntax/spelling of [(ngModel)] in the input tag","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/43298011/angular-error-cant-bind-to-ngmodel-since-it-isnt-a-known-property-of-inpu","votes":394,"created_at":"2026-04-19T04:51:17.801996+00:00","updated_at":"2026-04-19T04:51:17.801996+00:00"}