Issue
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?
Solution
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';
Answered By - Günter Zöchbauer
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.