Created
April 18, 2017 04:46
-
-
Save envil/987055a73092646605df70df20ee1af4 to your computer and use it in GitHub Desktop.
Populate multiple class by ng-class #angularjs
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="{'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