# Set tab active on two separate states

**URL:** <https://forum.ionicframework.com/t/set-tab-active-on-two-separate-states/84604>\
**Category:** ionic-v1\
**Created:** [March 29, 2017, 4:02am UTC](https://forum.ionicframework.com/t/set-tab-active-on-two-separate-states/84604 "2017-03-29T04:02:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![loljiaxi](https://avatars.discourse-cdn.com/v4/letter/l/cc9497/32.png) [@loljiaxi](https://forum.ionicframework.com/u/loljiaxi)\
**Post date:** [March 29, 2017, 4:02am UTC](https://forum.ionicframework.com/t/set-tab-active-on-two-separate-states/84604/1 "2017-03-29T04:02:28Z")

</div>

I want to set ‘tab-item-active’ when I am in two different states, but I can’t use ng-class. The tab doesn’t have any view as it is just used as a button for a popover. Is there a work around without using ‘views’?
