How to clear navigation history before beta14?

I’m using an app based on a side-menu. For some reasons, I have to stay on Ionic Beta 13.

Sometimes, I have angular redirections from A to B using $state.go(state_name) in A controller. (ui-router).

I’d like to hide the “back” button that displays automatically on B (in the header). How can I do it?

When I create redirections using a button, it’s easy since I just add nav-clear directive to my button and it clears history, and so does NOT display back button after redirection. But when I create redirections with $state.go I don’t know how to do.

Thanks.

For old beta 13, you can use this

1 Like