I have a css code that looks like this:
:host >>> a.ng2-smart-sort-link.sort::after {
content: '';
right: 0.75rem;
position: absolute;
display: inline-block;
width: 0;
height: 0;
border-bottom-color: #1a2138;
border-bottom: solid rgba(0, 0, 0, .3);
border-left: solid transparent;
border-right: solid transparent;
border-width: 0.375rem;
margin-bottom: 2px;
top: 50%;
-webkit-transform: translate(0, -50%) rotate(180deg);
transform: translate(0, -50%) rotate(180deg);
}
a.sort.asc::after {
-webkit-transform: translate(0, -50%);
transform: translate(0, -50%);
}
<ng2-smart-table [ngClass]="{class: settings.columns.device.showSortIcon == true}"></ng2-smart-table>
How can I implement a class in css to use it with ngClass to display this css if a condition is true?