I'm very new to ng-class and I need to have a default class always applied to a span and add another class when a certain condition happens
<span
[ngClass]="{'timeString': true, 'disabledText': conditionalExpression}">
</span>
My css contains:
.timeString{
width: 50px;
}
.disabledText {
color: rgba(0, 0, 0, 0.38);
}
I have checked similar questions but not found what I'm looking for.
Basically I want to get rid of the 'timeString': true
part