Created
October 12, 2016 10:38
-
-
Save pierrejoubert73/e15c5d88fd881887998248bc2ad05833 to your computer and use it in GitHub Desktop.
How to add multiple classes and expressions to the ng-class attribute.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<span class="label" ng-class="{'possibleValue1' : 'class1', 'possibleValue2' : 'class2', 'possibleValue3' : 'class3'}[object.value]" ng-bind-html='object.value'></span> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Shouldn't ng-class-multiple.js actually be ng-class-multple.html?