property binding concatenate strings angular


How can I concatenate the below two statements. Both work by oneself.

<app-output [warnMessage]="myvalue | number:'1.0-1'"></app-output>

<app-output [warnMessage]="'TEXT01' | translate"></app-output>

Now I would like to combine both. How can I achieve this? In example something like that:

<app-output [warnMessage]="myvalue | number:'1.0-1' + 'TEXT01' | translate"></app-output>


Try adding some brackets

<app-output [warnMessage]="(myvalue | number:'1.0-1')+('TEXT01' | translate)">

Answered By – nsndvd

Answer Checked By – Dawn Plyler (AngularFixing Volunteer)

Leave a Reply

Your email address will not be published.