I have this:
ng-class="
filter.page == $index ? 'btn-dark' : 'btn-outline-secondary'
"
Which works.
However, I want to add more classes, depends on different IF
s
like this:
ng-class="
filter.page == $index ? 'btn-dark' : 'btn-outline-secondary';
$root.t.direction=='rtl' ? 'ml-2' : 'mr-2'
"
But only the last is getting applied.