I'm trying to set up an ng-class to work on a div with two conditions:
ng-class="(accounts.length == 1 && account.cardName =='Cash') ? 'one-dash-cash' : ''"
and
ng-class="(accounts.length == 1 && account.cardName =='Points') ? 'one-dash' : ''"
What's the best way to accomplish this? I've read that I shouldn't have all this logic in the HTML, but I'm not sure how to do this.
Thanks in advance..