I would like to reuse this ng-template elsewhere in my app. Only the ng-template, not the tab group. I still want to be able to change the message though between the different components.
This is my code
<mat-tab-group>
<ng-template #reusable>
<h2 matDialogTitle>Are you sure you want to do X</h2>
<mat-dialog-actions>
<button mat-button matDialogClose="no">No</button>
<button mat-button matDialogClose="yes">Yes</button>
</mat-dialog-actions>
</ng-template>
</mat-tab-group>