我使用有角度的材质组件来制作表格,所以我使用mat-form-field
.
我想在左边有标签,在右边有一个文本输入字段。我怎样才能做到这一点?在官方文档的示例中,这是不可能的。
html
<div class="container">
<mat-form-field appearance="legacy">
<mat-label>Nom</mat-label>
<input matInput formControl="nom">
</mat-form-field>
</div>
预期结果: