How would you do to add and set an HTML class that can be changed with a parameter, with an Angular directive ? Let's say we have a div with an already existing class, but no directive :
<div class="myClass"></div>
Now, we want to attach a directive to it, and one parameter :
<div directiveName set="X" class="myClass myClass-X"></div>
If I need a 4, then my class added dynamically would be changed like that :
<div directiveName set="4" class="myClass myClass-4"></div>
I totally know how to add a class with @hostbinding, but I can't find how to change this one dynamically with my "set" parameter
Thank you very much