Say I have an angular component ie <this-thing></this-thing> which does it's thing.
Now I want to add something extra to it, ie <this-thing glows></this-thing>
I would like the component to change a little if the glow attribute is there.
I have managed to do it via <this-thing [glows]="true"></this-thing> and in the component I have
@Input() public set glows(value: boolean) {
console.log(value);
}
But that becomes too verbose.
If glows attribute is not on the component, then it's false and if it is, then true.
Is there a better way to acheive this?
Thanks for looking.