Skip to content

Instantly share code, notes, and snippets.

@4gray
Forked from matthewcopeland/ng-class-if-else.html
Created December 5, 2017 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 4gray/f5882f79198030cd063f104075bd4751 to your computer and use it in GitHub Desktop.
Save 4gray/f5882f79198030cd063f104075bd4751 to your computer and use it in GitHub Desktop.
ngClass if else
<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