我尝试使用带有正式选项hintEnd
的from材料:
<mat-hint *ngIf="to.hintEnd as hintEnd" align="end">
<ng-container [ngTemplateOutlet]="stringOrTemplate" [ngTemplateOutletContext]="{ content: hintEnd }">
</ng-container>
</mat-hint>
在这样的表单结构中:
{
key: "text",
type: "input",
templateOptions: {
label: "type something here...",
placeholder: "Placeholder",
description: "Description",
hintEnd: "this is the hint at the end!" // <----- here.
}
}
但是在 ui 中没有出现文本,我没有收到任何错误。
为什么?我在这里想念什么?