mat-form-field must contain a MatFormFieldControl

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

    I had same issue

    issue is simple

    only you must import two modules to your project

    MatFormFieldModule MatInputModule

提交回复
热议问题