【发布时间】:2018-12-07 05:58:09
【问题描述】:
在 AngularMaterial 中,我看到了这样的代码。
<form class="example-form">
<mat-form-field class="example-full-width">
<input matInput placeholder="Favorite food" value="Sushi">
</mat-form-field>
</form>
<mat-form-field> 组件内部有<input> 元素。
通常,当我在组件中编写元素时,它会被忽略。
我该怎么做。
【问题讨论】:
-
你导入表单组件了吗?
-
stackoverflow.com/questions/42355236/… 这是您找到的一个示例。在这里,您可以正确找到如何使用
的示例
标签: angular