Hidden nav-bar using $state.go() with disabled caching (Beta 14)

@Witteman solution work for me…Thanyou

1 Like

Add hide-nav-bar=“false” to your ion-view for that page.

<ion-view hide-nav-bar="false">
2 Likes

It worked! Thanks acardinale

Edit: Actually now I have another issue. The view reloads correctly and the nav bar is here (yay!!), but when I navigate to child views, the back button is missing !

This doesn’t occur when I don’t $state.reload() the parent view…

You could also show the nav-bar after entering the view by using the following piece of code in your controller.

$scope.$on('$ionicView.enter', function(e) {
    $ionicNavBarDelegate.showBar(true);
});

dont forget to inject $ionicNavBarDelegate

Also it’s probably going to be fixed in Ionic 1.3 https://github.com/driftyco/ionic/issues/3852

6 Likes

Thanks @0x1AD2, it really helped!

1 Like

I upgraded to v1.3 to resolve this but am still able to reproduce it. Also tried the solutions mentioned above but unfortunately none worked for me as a workaround. Disabling cache seems to be a very common scenario. Am stuck and am not sure how to get past this.

Any update on this anyone?

@0x1AD2 best solution till date.

1 Like

This is by far the best Solution provided.

Thank you , nice solution!