$viewHistory is undefined beta14

Howdy,

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

Please help

1 Like

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
});
1 Like

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:

$ionicHistory.viewHistory();

Regards