I'm trying to enhance an element with the following ng-class attributes:
<div ng-class="a ? 'class1' : 'class2'"></div>
Now, I want to include another ng-class statement: ng-class="class3: b !== c"
.
How can I merge these ng-class statements effectively?
I've attempted <div ng-class="{a ? 'class1' : 'class2, class3: b !== c"></div>
as well as <div ng-class="(a ? 'class1' : 'class2') + ' ' + (class3: b !== c)"></div>
, but neither seem to be working. Any suggestions?