0 votes
1 view
in Web Technology by (47.8k 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 (107k 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.8k points)
0 votes
1 answer
+2 votes
1 answer
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...