Back
Can we have multiple expressions to add multiple ng-class ?
for eg.
<div ng-class="{class1: expressionData1, class2: expressionData2}"></div>
If yes can anyone put up the example to do so?
For adding multiple classes using ng-class you can use the below-mentioned code:-
<div ng-class="{class1 : expression1, class2 : expression2}"> Hello World! </div>
31k questions
32.8k answers
501 comments
693 users