I am trying to display a status label that will contain different background colors and text depending on the status in AngularJs (e.g. 'New' = green, 'Active' = yellow). I currently have a css file with
.status {
padding: 4px 8px;
font-size: 12px;
line-height: 12px;
color: white;
border-radius: 16px;
}
.status.new {
background-color: #673AB7;
border: 1pt solid #673AB7;
}
.status.active {
background-color: #4CAF50;
border: 1pt solid #4CAF50;
}
In my html I am referencing multiple classes like below
<span class="status pull-right">{{statusProperty}}</span>
Is it possible to combine class with ng-class to use extended classes or can this be accomplished through ng-style?