This repository was archived by the owner on May 4, 2022. It is now read-only.
This repository was archived by the owner on May 4, 2022. It is now read-only.
bug: $ionicHistory.goBack(-2) does not fire $ionicView.leave #89
Open
Description
From @rinogo on September 26, 2016 18:22
Type: bug
Ionic Version: 1.x
Platform: all
$ionicHistory.goBack(-2)
does, indeed, navigate back two views, but it does not fire $ionicView.leave
before leaving the current view. I have verified that the same bug exists for $ionicView.beforeLeave
and $ionicView.afterLeave
. I imagine the same bug also exists for $ionicHistory.goBack(-3)
, etc.
CodePen
Click Scientific Facts > More Facts and then experiment with the "goBack()" buttons. Using the goBack()
button causes the alert to be shown as expected. Using the goBack(-2)
button does not cause the alert to be shown.
http://codepen.io/rinogo/pen/Egmvjw
Copied from original issue: ionic-team/ionic-framework#8221