When using the tabview component from PrimeNG, I am encountering an issue where I am unable to bind a header style class.
Here is my static HTML code that works:
<p-tabPanel header="Title" headerStyleClass="badge" formGroupName="groupName">
However, I would like to use headerStyleClass with a condition:
<p-tabPanel header="Title" [headerStyleClass]="{'badge': formGroup.get('groupName').dirty}" formGroupName="groupName">
I am looking for a way to properly bind the class property in this scenario. Any suggestions on how to achieve this?