Mat Form Field Must Contain A Matformfieldcontrol - Forgetting to add the matinput directive to input and textarea elements. Setting *ngif on an input or a textarea element. The problem is here : If your form field contains a native or element, make sure you've added the matinput directive to it and have imported matinputmodule. This error occurs when you have not added a form field control to your form field.
This error occurs when you have not added a form field control to your form field. Forgetting to add the matinput directive to input and textarea elements. If your form field contains a native or element, make sure you've added the matinput directive to it and have imported matinputmodule. Setting *ngif on an input or a textarea element. The problem is here :