Created
January 30, 2015 01:31
-
-
Save matthewcopeland/ff5d55b56bfc9a1f5099 to your computer and use it in GitHub Desktop.
ngClass if else
This file contains hidden or 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
<div ng-class="condition ? 'class-if-true' : 'class-if-false'"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is for your idea
ng-class="{test: obj.value1 == 'someothervalue' || obj.value2 == 'somethingelse'}
Check here ng class if else