Currently, I am working with angular 9. Does anyone know a way to dynamically change the CSS of a class in a component?
.stick-menu{
transform: translate(10px,20px);
}
I am looking to dynamically adjust the position of x and y values. For example:
.stick-menu{
transform: translate(20px,30px);
}
However, I do not want to use ngclass or ngstyle. I just want to make changes in the class and have it apply to all elements. Thank you.