$viewHistory is undefined beta14


#1

Howdy,

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
#2

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) {
    // DO SOMETHING
});

#3

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!


#4

Hi, I also had a similar issue.

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

I used:

$ionicHistory.viewHistory();

Regards