When dealing with 2 classes, I am only interested in enabling or using them if a specific condition is met: dealDispositionFormFields.isSubtenantTakingFullSpace === 'No'
How can we create the correct syntax utilizing ngClass for this purpose? Thank you.
- deal-form-date-picker
- enabled-input
I would like to know how to implement multiple classes using ngClass in angular. For instance, I want to utilize the deal-form-date-picker class and enabled-input class when dealDispositionFormFields.isSubtenantTakingFullSpace === 'No'
#code
class="opacity87" [ngClass]="{'enabled-input':dealDispositionFormFields.isSubtenantTakingFullSpace === 'No'}"