Answers for "error NG8002: Can't bind to 'ngModel' since it isn't a known property of 'input'. 23 Input string : <input type='text' [(ngModel)]="num" />"

14

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

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

[...]

@NgModule({
  imports: [
    [...]
    FormsModule
  ],
  [...]
})
Posted by: Guest on April-29-2020

Code answers related to "error NG8002: Can't bind to 'ngModel' since it isn't a known property of 'input'. 23 Input string : <input type='text' [(ngModel)]="num" />"

Browse Popular Code Answers by Language