Angular error: "Can't bind to 'ngModel' since it isn't a known property of 'input'"
Full error message
I'm using Angular 4 and I am getting an error in the console: Can't bind to 'ngModel' since it isn't a known property of 'input' How can I resolve this?
Solutionsource: stackoverflow \u2197
In order to use two-way data binding for form inputs you need to import the FormsModule package in your Angular module. import { FormsModule } from '@angular/forms'; @NgModule({ imports: [ FormsModule ] EDIT Since there are lot of duplicate questions with the same problem, I am enhancing this answer. There are two possible reasons Missing FormsModule, hence Add this to your Module, import { FormsModule } from '@angular/forms'; @NgModule({ imports: [ FormsModule ] Check the syntax/spelling of [(ngModel)] in the input tag
API access
Get this solution programmatically \u2014 free, no authentication.
curl https://depscope.dev/api/error/5c66998c51ff248f188e2c7485f0b0625478d65842a6680275578148f613d019hash \u00b7 5c66998c51ff248f188e2c7485f0b0625478d65842a6680275578148f613d019