Simple history state tracker for Ionic

Ionic doesn’t track history too well if you’re going between tabbed and non-tabbed layouts. Here’s a drop-dead simple implementation of a history tracker:

Then to navigate back from your controller, just use the goBack method on the historyState service.

Leave a Reply

Your email address will not be published. Required fields are marked *