ui5-panel control attribute header-text
Hi guys
When I try to put a property in the header-text attribute using angular, it is not possible to link it to a variable

How can we do that?
Thanks
Hello @camilo2312
I am not really an Angular expert but you can check our sample app https://github.com/SAP/ui5-webcomponents-sample-angular/blob/0696fde73e512848856ea7fd9e4e330e73aae7e9/src/app/app.component.html#L9-L13
Can you try to do something like:
[headerText]="expression"
@fifoosid ping
Hi @camilo2312
You have two approaches to choose from:
- As Martin proposed above:
[headerText]="panelTitle" - If you want to use the dashed syntax:
[attr.header-text]="panelTitle"
With both approaches, panelTitle should be declared variable.
Best regards, Filip
Thanks for your help