Last active
August 29, 2015 14:21
-
-
Save vanduc1102/b2712d7b3409893269bf to your computer and use it in GitHub Desktop.
Use ngClass in HTML
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
<!-- with IF condition --> | |
<div id="application-manage-header" ng-class="isOrangeUser ? 'user-red' : 'user-orange' " > | |
</div> | |
<!-- other IF condition --> | |
<div id="application-manage-body" ng-class="{'hidden-footer': isHideFooter}"> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment