0
votes

I have created an angular 6 app for generating the reactive form dynamically from a json object. But for the radio type ONLY it showing some error like

ERROR Error: mat-form-field must contain a MatFormFieldControl.

stackblitz LINK

Did I miss any attribute/key in the html template??

1
Try including MatInputModule - Akash
@akash already included !! - Jobelle
is your problem resolved.? - Developer

1 Answers

0
votes

This error will happen if you forget to put the material tag (such as matInput) for the input inside the mat-form-field.