Ionic 1 refresh view of tab


#1

Hi. I have a login/logout application. After login page, user goes to Tab page. When user logs out and login again, the tabs don’t refresh. I used this:

$state.go('tab.dash', {}, {reload:true});

But it doesn’t work. I even used cache:false for my tab route (the abstract route).

Note: I don’t want to turn of the cache at all. Just after logging out. Just this works:

$window.location.reload();

But it refresh the page and has bad UX. Any idea?

Edit: Actually the tab itself refresh, but each tabs inside the main tab does not.


#2

Done with $state.reload() when user is going to log out.