Skip to content

Instantly share code, notes, and snippets.

@matthewcopeland
Created January 30, 2015 01:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save matthewcopeland/ff5d55b56bfc9a1f5099 to your computer and use it in GitHub Desktop.
Save matthewcopeland/ff5d55b56bfc9a1f5099 to your computer and use it in GitHub Desktop.
ngClass if else
<div ng-class="condition ? 'class-if-true' : 'class-if-false'">
@EhteshamMehmood
Copy link

This is for your idea

ng-class="{test: obj.value1 == 'someothervalue' || obj.value2 == 'somethingelse'}

Check here ng class if else

@phamthecuong
Copy link

thank you, done :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment