How do I dynamically add SCSS styles reading from an Angular array? We have an angular array with following members.
class ItemList{
productName: string;
highlight: boolean;
}
It contains members {food, true}, {car, true}, {book, false}, {desk, true}, etc
Following members with true, need certain styling.
All members in array, with true should create the following.
SCSS:
.food{
background-color:blue
}
.car{
background-color:blue
}
.desk{
background-color:blue
}