I have a screen-1 ('home' screen) which has three tabs (say tab1, tab2, and tab3). When app launches, the 'tab3' is active (in homeController.js I have set "$scope.active='tab3'").
Now when I open 'tab1' (so 'active' class updated to 'tab1') and redirects from this 'tab1' to another screen-2 ($location.path('/pathToScreen2') using routing), the screen-2 launches which has a back button, onclick of back button ($location.path('/pathToScreen1')), it navigates back to screen-1.
Now when screen-1 is launched, the active tab is 'tab3' rather I want 'tab1' should be active (probably every time when homeController gets loaded, It would initialise "$scope.active='tab3'"). How can I accomplish this?