This is the opposite of questions like this one.
I have a child element in a parent element (in this case a matSelect in a matCard, which is probably irrelevant) with a title set for the parent element. The child element may or may not supply its own title:
<mat-card title="Parent title">
<mat-select [title]=getChildTitle()>
</mat-select>
</mat-card>
Is there anything I can return from getChildTitle() to get it to revert to the parent's title text, or is the only way I can do this to specify the Parent title again, à la [title]=getChildTitle() ?? 'Parent title'? Just returning undefined doesn't seem to do it - then my title text reads "undefined".
You provide a little context on how these titles are passed in. I will assume that you have a component that will use
mat-cardandmat-select.In the my-component.ts
In the my-component.html
In the app-component.html