Angular 在输入组件中传递转换值

Angular 在输入组件中传递转换值,angular,angular10,Angular,Angular10,我使用角度10。 我有一个手风琴组,这个手风琴组有一个[标题]作为手风琴的标题 <accordion-group *ngFor="let notif of notifResponse.notifs.content" [heading]="{{ notif.title | translate }}" [panelClass]="'border'"> </accordion-group>

我使用角度10。 我有一个手风琴组,这个手风琴组有一个
[标题]
作为手风琴的标题

<accordion-group *ngFor="let notif of notifResponse.notifs.content" 
     [heading]="{{ notif.title | translate }}" [panelClass]="'border'">
   
 </accordion-group>

我的代码
[heading]=“{{{notif.title | translate}}”
不起作用。我有一个未过期的令牌错误…日志中有许多错误

如何获取变量的值,将其转换并发送到输入


提前感谢。

Ivan works提供的解决方案<代码>[标题]=“notif.title | translate”。谢谢

首先
[heading]=“notif.title | translate}”
->
[heading]=“notif.title | translate”