I have this code which sets a class on the host:
@HostBinding('class.fixed') true;
What I would like to do is make this a variable class that I can modify. How can I do this?
This can't be made variable.
What you can do instead is to bind to the class property directly
@HostBinding('class') classes = 'class1 class2 class3';
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With