I want to set @HostBinding for specific conditions only. Suppose that I declared the @HostBinding like below in angular component
@Input() @HostBinding('innerHTML') mainvalue;
if the mainvalue is empty or undefined, then how can we stop working hostbinding?. currently if mainvalue is empty or undefined, then whole content of the component is going to deleted.
Thanks in advance.