Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (47.6k points)

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?

1 Answer

0 votes
by (106k points)

For adding multiple classes using ng-class you can use the below-mentioned code:-

<div ng-class="{class1 : expression1, class2 : expression2}"> Hello World! </div>

Related questions

0 votes
1 answer
asked Sep 3, 2019 in Web Technology by Sammy (47.6k points)
0 votes
1 answer
+2 votes
1 answer
0 votes
1 answer

Browse Categories

...