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

Dung Do Tien Jan 30 2021 62

I am working with nz-form of Ant Design and got this error "Can't bind to 'formGroup' since it isn't a known property of 'form'.".  Although I have imported it into the module.

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

​​​​​​​Can't bind to 'formGroup' since it isn't a known property of 'form' in Angular.

Can someone help me?

Have 1 answer(s) found.
  • T

    Tran Quang Hung Jan 29 2021

    The component you are using formControl.So you need to import ReactiveFormsModule . 

     import { FormsModule, ReactiveFormsModule } from "@angular/forms";

    After you declared the above statement, import it into the module array

Leave An Answer
* NOTE: You need Login before leave an answer

* Type maximum 2000 characters.

* All comments have to wait approved before display.

* Please polite comment and respect questions and answers of others.

Popular Tips

X Close