mat-form-field must contain a MatFormFieldControl

前端 未结 30 1808
萌比男神i
萌比男神i 2020-11-28 04:35

We are trying to build our own form-field-Components at our Company. We are trying to wrap material design\'s Components like this:

field:



        
30条回答
  •  时光说笑
    2020-11-28 04:49

    I had accidentally removed the matInput directive from the input field which caused the same error.

    eg.

    
       
    
    

    fixed code

     
       
    
    

提交回复
热议问题