I am attempting to showcase a status label that will show various background colors and text depending on the status using AngularJs (for example, 'New' = green, 'Active' = yellow). Currently, I 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 utilizing multiple classes like so
<span class="status pull-right">{{statusProperty}}</span>
Is there a way to merge classes with ng-class to utilize extended classes, or can this be achieved through ng-style?