When I have a child component app-page-header, here's what I want to achieve: If the value of headerOptions.headerTitle is not 'Idle Disposition', then set [titleData] to equal 'headerOptions.headerTitle'. However, if headerOptions.headerTitle equals 'Idle Disposition', then set [titleData] to "{{dealDetails?.dealType}}"
How can we implement this logic using Angular syntax? Thank you for any assistance.
#Here is my current implementation:
<app-page-header
[titleData]="headerOptions.headerTitle !== 'Idle Disposition' ? headerOptions.headerTitle : headerOptions.headerTitle ({{dealDetails?.dealType}})"
[breadCrumbs]="headerOptions.breadCrumbs"
[hasTabs]="false"
>
<p>{{dealDetails?.dealType}}</p>