Last active
June 15, 2016 06:11
-
-
Save stsatlantis/f5871889055edbc8b57b21cc1b2ac9f4 to your computer and use it in GitHub Desktop.
This file contains 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
## HMTL: | |
<span class="label" ng-style="vm.decorateLabel(entity)">{{entity.name}}</span> | |
## JavaScript: | |
vm.decorateLabel = decorateLabel; | |
function decorateLabel(entity) { | |
return { | |
"color": entity.fontColor, | |
"background-color": entity.backgroundColor | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment