Display Label In Different Colors Based On Value In Get

[Solved] Display Label In Different Colors Based On Value In Get | Csharp - Code Explorer | yomemimo.com
Question : display label in different colors based on value in get ng+ bootstrap

Answered by : depressed-dunlin-0e2uewt6jpyk

<div class="label" ng-class="{'label-success': server.state === 'online', 'label-danger': server.state === 'offline'}"> {{server.state}}
</div>

Source : https://stackoverflow.com/questions/28288377/set-different-bootstrap-labels-color-depending-on-backend-information-angular | Last Update : Mon, 24 May 21

Answers related to display label in different colors based on value in get ng bootstrap

Code Explorer Popular Question For Csharp