I have a CSS file looking like this: aside { .myClass { ul li { color: black } } } .myClass2 { ul li { color: white } } And I want to use [ngClass] to d
Solution 1:
Try this,
[ngClass]="{'aside': true, 'links': message === 'NORMAL', 'links2' : message === 'LIGHT'}"
Post a Comment for "Angular 6 Ngclass Change Css Class Which Is In The Tag"