I have been migrating my App from Ionic 3 to Ionic 5. I am using Ionic NavController (which is a wrapper around Angular's router):
import { NavController } from '@ionic/angular';
However, for some reason, I can't disable the animation on the pop. It doesn't take NavigationOptions as parameter. Here is what the doc says about it:
/**
* This methods goes back in the context of Ionic's stack navigation.
*
* It recursively finds the top active `ion-router-outlet` and calls `pop()`.
* This is the recommended way to go back when you are using `ion-router-outlet`.
*/
pop(): Promise<void>;
How can I disable the page transition animation for a pop() ?