Skip to content

Instantly share code, notes, and snippets.

@envil
Created April 18, 2017 04:46
Show Gist options
  • Save envil/987055a73092646605df70df20ee1af4 to your computer and use it in GitHub Desktop.
Save envil/987055a73092646605df70df20ee1af4 to your computer and use it in GitHub Desktop.
Populate multiple class by ng-class #angularjs
div(ng-class="{'class1': $index === 1,
'class2': $index === 2,
'class3': $index !== 1 && $index !== 2}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment