Ion-view is not removed and scope is not destroyed if back animation disabled


#1

I want to go back to previous screen without an animation.
So I did this

    $ionicHistory.nextViewOptions({
          disableAnimate: true
     });
    $ionicHistory.goBack();

But the problem is view is not removed and destroyed if I disabled the back animation. $distroy event not fired and I still can see the ion-view in the DOM. With animation enabled it works fine.

How can I can go back without an animation properly?
ionic version: 1.2.4

Thanks


#2

Tested in 1.3.2
Issue exists

And I also found that if we going back 2 screens without an animation
$ionicHistory.goBack(-2);
2 screens are properly removed and destroyed.
Issue is going back 1 screen without an animation. Weird…