How to select tab when accessing state in different tab?


I have problem in selecting tab, i tried following using $ method but failed.$ionicTabsDelegate/

I am making music player application, i have four tabs where music player is in nested state of 2nd tab.

I am accessing that music player and i want to change the tab accordingly
For example, if i am on first tab and selecting song it is going to music player but should select first tab.