Can’t bind to ‘formGroup’ since it isn’t a known property of ‘form’

The solution of this problem is : import FormsModule and ReactiveFormsModule in your module.

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    ReactiveFormsModule
  ],
  declarations: [
    ContactComponent
  ]
})
export class ContactModule {}

Lire aussi : Solution for : No Provider for FormBuilder

Laisser un commentaire