Remembering ionic active tab

HI all,
How to preserve the active tab state.
Consider two tabs tab1 and tab2 in page 1
If select an item in tab2 content , i will be navigated to page 2. On clicking back button in page 2, tab2 should be active in page 1.
I tried the IonicTabsDelegate , I can change the tab but i can notice the transition from tab1 to tab2.

I implemented the tabsDelegate in StateChangeStart.

Any help would be appreciated
thanks

Could you provide some code to show what you have?