Consider the following case.
Parent component:
<div title="title1">
<my-component input="title2"></my-component>
<my-component></my-component>
</div>
MyComponent:
<div [title]="input">ABC</div>
The problem here is that first "ABC" div will have the "title2" tooltip while the second one will have whatever MyComponent has as default value for input, and this will "override" "title1" tooltip which is not desired.
How can I avoid setting "title" in MyComponent template if no "input" is received?