I have Issue to create Dynamic css class in component HTML file... Right now I am using inline css like this
<div class="" [style.color]="mapData.theme.bodyFontColor"></div>
using angular functionalty.. but i need a class where I should change attribute dynamically. Example
.wrapper{
color : mapData.theme.bodyFontColor;
font-family: mapData.theme.bodyFontFamily;
}
if you seen screenshot there is a option to change color of template so just I need to update that color instantly in my class attribute..
is it possible?

ts valueto a css/scss definition, but you can use[ngStyle]to dinamically change the css value binded to a variable defined in the ts code. IE:<div class="wrapper" [ngStyle]="{'color' : mapData.theme.bodyFontColor}"></div>- Jacopo Sciampi