I know similar question have been asked before and I have gone through many but not getting the class to be applied.
I have the following:
data-ng-class="doc.documentCategory ? doc.documentCategory.toLowerCase() : '' "
Trying to apply a class depending on the value of the doc.documentary variable. I have tried:
data-ng-class="[doc.documentCategory ? doc.documentCategory.toLowerCase() : '']"
data-ng-class="{doc.documentCategory ? doc.documentCategory.toLowerCase() : ''}"
and read: dynamic classname Angular class name variable changing class name based on variable
and others. Appreciate any suggestions.