Can we add two ng-class in one div? If so then how to write it. How can we write this together?
Thank you in advance.
<div [ngClass]={'white-background': policy number.length <=0}
[ngClass]="getSomeClass()">
Can we add two ng-class in one div? If so then how to write it. How can we write this together?
Thank you in advance.
<div [ngClass]={'white-background': policy number.length <=0}
[ngClass]="getSomeClass()">
You can do this
With
getClass1()
andgetClass2()
returningtrue
orfalse
to conditionally apply class1, class2.