0

How can I declare below given two ng-class in one:

<ion-item class="item-positive item-text-wrap"
          ng-class="{active: isGroupShown(faq)}"
          ng-class="isGroupShown(faq) ? 'item-royal' : 'item-stable'">
Syed
  • 15,657
  • 13
  • 120
  • 154
  • @SandeepSukhija see both are different condition, referring your link I tried to do this way but nothing works. `ng-class="{active: isGroupShown(faq), isGroupShown(faq) ? 'item-royal' : 'item-calm'} ">` – Syed Apr 03 '16 at 18:29
  • 1
    @SandeepSukhija I did this and now working as needed. `ng-class="isGroupShown(faq) ? 'item-royal active' : 'item-calm'"` – Syed Apr 03 '16 at 18:33

0 Answers0