Angular 离子5:删除Pop上的页面转换

Angular 离子5:删除Pop上的页面转换,angular,typescript,ionic-framework,Angular,Typescript,Ionic Framework,我一直在将我的应用程序从爱奥尼亚3迁移到爱奥尼亚5。 我使用的是离子导航控制器(Angular路由器的包装): 但是,由于某些原因,我无法禁用pop上的动画。它不将导航选项作为参数。以下是医生对此的看法: /** * This methods goes back in the context of Ionic's stack navigation. * * It recursively finds the top active `ion-router-out

我一直在将我的应用程序从爱奥尼亚3迁移到爱奥尼亚5。 我使用的是离子导航控制器(Angular路由器的包装):

但是,由于某些原因,我无法禁用pop上的动画。它不将
导航选项
作为参数。以下是医生对此的看法:

    /**
     * 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>;
/**
*这种方法可以追溯到爱奥尼亚的堆栈导航环境中。
*
*它递归地查找顶部活动的'ion router outlet',并调用'pop()'。
*当您使用“ion router outlet”时,建议使用此方法返回。
*/
pop():承诺;

如何禁用pop()的页面转换动画?

我想您已经阅读了,之后也会阅读。所以我认为你需要两个步骤,而不是一个。因为我认为NavController不再使用了,爱奥尼亚团队已经与官方的Angular集成在一起了Router@JTejedorv5.x的文档并不完全清楚,但尽管Angular Router完全受支持,
NavController
存在,并且没有被弃用。它允许您控制动画并执行诸如从堆栈中删除所有页面之类的操作。这些是Angular Router显然无法支持的功能,所以我认为它不会被删除。也许你是对的。但在迁移3.X到4.X的主题下,爱奥尼亚团队解释了如何使用ion router outlet执行任何动画,而不是直接引用“为了提供用户习惯的特定于平台的动画,我们为Angular应用程序创建了
ion router outlet
。其行为方式与Angular的路由器插座类似,但提供基于堆栈的导航(选项卡)和动画。“。无论如何,这只是一个建议,也许仍然使用
NavController
是一个好主意。我显然使用的是离子路由器插座,如上所述,NavController只是angular路由器的包装器,它没有被弃用,并且是文档的一部分。
    /**
     * 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>;