我正在尝试使用指令并将其传递给label =“ My Label”,但是我的标签未显示在UI中,而是获得了默认的“ Password”作为我的标签。
我认为在以下文件第88行中传递“标签”作为选项将解决此问题? https://github.com/grafana/grafana/blob/c9b11bfc7ae1ce89d737c938993db5fa0e421fdb/public/app/core/angular_wrappers.ts
我在github上打开了一张与此有关的票,但我不明白答案。
https://github.com/grafana/grafana/issues/20258
他们是否建议我使用react编写我的配置编辑器,而不是尝试将“标签”传递给secret-form-field指令?
答案 0 :(得分:-1)
传递道具的任何组件
<ng-container>
<app-component *ngFor="let item of itemsToLoopOver" [input]="item.text"></app-component>
</ng-container>
@Input() private textToShow: string;
<div>
{{ textToShow }}
</div>