0

我尝试使用带有正式选项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 中没有出现文本,我没有收到任何错误。

为什么?我在这里想念什么?

代码沙盒中的示例

4

0 回答 0