mat-form-field must contain a MatFormFieldControl

前端 未结 30 1762
萌比男神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:47

    I'm not sure if it could be this simple but I had the same issue, changing "mat-input" to "matInput" in the input field resolved the problem. In your case I see "matinput" and it's causing my app to throw the same error.

    
    

    "matinput"

    "matInput"

提交回复
热议问题