5
我試圖在我的組件中使用angular-material2
插入一個輸入字段。這是我的HTML:md-form-field必須包含MdFormFieldControl
<md-form-field>
<input type="text">
</md-form-field>
在控制檯中,我得到這個錯誤,但我不明白爲什麼我得到的錯誤:
md-form-field must contain a MdFormFieldControl. Did you forget to add mdInput to the native input or textarea element?
我仍然得到錯誤:/ – annie
哪個版本的材料?同樣的錯誤?那是不可能的 - 你見過演示嗎? – Faisal
修正了它,我忘記了導入一些模塊。 – annie