I’m having the same trouble as well. In Angular, I believe we should be able to use $location.replace()
to clear all history. Unfortunately, this is not working with Ionic. It still displays the back button after calling this method.
I’ve even tried to change the path with $location.url('/home', true);
The true
should replace the entire history as well, but no luck.
Anyone have some ideas on a solution or what I’m doing wrong?