DEV Community

Thiago
Thiago

Posted on

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

For using [(ngModel)] in Angular 2, 4 & 5+, you need to import FormsModule from Angular

example:

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

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

Top comments (0)