display label in different colors based on value in get ng+ bootstrap code example
Example: display label in different colors based on value in get ng+ bootstrap
<div class="label"
ng-class="{'label-success': server.state === 'online', 'label-danger': server.state === 'offline'}">
{{server.state}}
</div>