$viewHistory is undefined beta14



After upgrade to Ionic beta 14 I found that $rootScope.$viewHistory is undefined. I didn’t see any information in DOCs.

Please help

[Solved] Detect if ion-nav-button is shown

I have a similar issue after updating to beta14.
I’m trying to use the event historyChange, but it not being called.

$rootScope.$on('$viewHistory.historyChange', function(e, data) {


Yes, it is awfull that nobody answered here. I have been struggling with this for an entire morning, untill understandinh that probably this mothod has been cancelled.
Please update forum posts!


Hi, I also had a similar issue.

$rootScope.$viewHistory only is valid until beta 13 version.

I used: