I'm still getting used to Angular's change detection implementation, and I'm not clear on whether calling functions in templates causes performance issues.
For example, is it worse to do the following:
<mat-tab-group>
<mat-tab label="First"> {{ getFirstTab() }} </mat-tab>
<mat-tab label="Second"> {{ getSecondTab() }} </mat-tab>
</mat-tab-group>
than do:
<mat-tab-group>
<mat-tab label="First"> {{ firstTabContent }}</mat-tab>
<mat-tab label="Second"> {{ secondTabContent }}</mat-tab>
</mat-tab-group>
What about:
<button *ngIf="shouldShowButton()" .... >