I'm working on Angular 4 but I'm stuck. Let's say I have a CSS class called cover-art
:
.cover-art {
width: 300px;
height: 300px;
background-color: rojo;
}
And then I want to update that class through entries in the HTML template. I do not want to directly modify <div class="cover-art">
but I want to change the values in the styles directive or overwrite that class.
I was thinking about creating a CSS class in the component definition class and linking it with @HostBinding
or something like that, but I do not know ... Maybe it's not possible.
I do not want to use jQuery or another library, it does not make sense to do that.