Answers for "ng model error in ts file"

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
2

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

if we want to implement form in agular we need to add 'FormsModule' in app-module.ts imports: section
Posted by: Guest on October-02-2020

Browse Popular Code Answers by Language