mat-form-field must contain a MatFormFieldControl

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

    Unfortunately content projection into mat-form-field is not supported yet. Please track the following github issue to get the latest news about it.

    By now the only solution for you is either place your content directly into mat-form-field component or implement a MatFormFieldControl class thus creating a custom form field component.

提交回复
热议问题