Can't bind to 'formGroup' since it isn't a known property of 'form'
snippet in javascript

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

user8185

mport { BrowserModule } from '@angular/platform-browser';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { AppComponent }  from './app.component';

@NgModule({
    imports: [
        BrowserModule,
        FormsModule,
        ReactiveFormsModule
    ],
    ...

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

user2338

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

[...]

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

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

user515

// To fix this error, you just need to import ReactiveFormsModule from @angular/forms in your module. 

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { AppComponent }  from './app.component';

@NgModule({
    imports: [
        BrowserModule,
        FormsModule,
        ReactiveFormsModule
    ],
    declarations: [
        AppComponent
    ],
    bootstrap: [AppComponent]
})

export class AppModule { }