Ionic 7 Angular routing back animation on iOS

Since now no more NavController, how to set the routing animation when change routing programmatically and also there is no way to trigger ‘back’ function programmatically, i using the angular routing to navigate.

Method: router.navigate()

this.router.navigate([‘…’], { relativeTo: this.activatedRoute })

*this method on iOS is Forward animation

Method: LocationStrategy.back()


*this method no animation

import { IonRouterOutlet } from ‘@ionic/angular’;

constructor(private ionRouterOutlet: IonRouterOutlet) { }

goBack() { this.ionRouterOutlet.pop(); }