Angular 2: formGroup expects a FormGroup instance. Please pass one in

前端 未结 5 843
名媛妹妹
名媛妹妹 2020-12-24 04:58

I am creating a form in Angular 2. My goal is to get data from the API and pass it into the form for editing purposes. However, I am running into this error:

5条回答
  •  情深已故
    2020-12-24 05:36

    This issue can happen when the FormGroup is not initialized. Please add *ngIf="patientForm" on form tag.

提交回复
热议问题