我如何连接下面的两个语句。都是自己干的。
<app-output [warnMessage]="myvalue | number:'1.0-1'"></app-output> <app-output [warnMessage]="'TEXT01' | translate"></app-output>
现在我想把两者结合起来。我怎样才能做到这一点?例如:
<app-output [warnMessage]="myvalue | number:'1.0-1' + 'TEXT01' | translate"></app-output>
尝试添加一些括号
<app-output [warnMessage]="(myvalue | number:'1.0-1')+('TEXT01' | translate)"> </app-output>