Can't bind to 'formGroup' since it isn't a known property of 'form' in Angular.
Dung Do Tien
Jan 30 2021
275
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 someone help me?
Have 1 answer(s) found.
-
T0
Tran Quang Hung Jan 29 2021
The component you are using
formControl.
So you need to importReactiveFormsModule
.import { FormsModule, ReactiveFormsModule } from "@angular/forms";
After you declared the above statement, import it into the module array
* Type maximum 2000 characters.
* All comments have to wait approved before display.
* Please polite comment and respect questions and answers of others.