I'm creating an app using Ionic and I've created a page survey
which is SurveyPage
. Inside of this page, I've got some texts and a component which is <app-survey-view>
which is SurveyViewComponent
Inside SurveyViewComponent
, I set a form and I have this error on [formGroup]="surveyForm"
inside my HTML :
Can't bind to 'formGroup' since it isn't a known property of 'form'
My property surveyForm
has been well set and it should be working.
I tried to import ReactiveFormsModule
inside my app.module.ts
but it isn't working.
Even inside my SurveyPageModule
I tried to import and export the ReactiveFormsModule but nothing changed.
Can someone help me fixing this ?
Thanks
EDIT : After some research, it seems like my page which has a module.ts doesn't let its child inherit the ReactiveFormsModule. I mean, survey-view
, can't access ReactiveFormsModule which has been declared in its parent's module (SurveyPage)