我正在尝试使用routerExtensions中的页面转换的页面转换但没有成功。(2.3.0)
我在js中尝试过:
this.routerExtensions.navigate(
[
'myPage'
],
{
animated: true,
transition:
{
name: 'flip',
duration: 2000,
curve: 'linear'
}
}
);
Run Code Online (Sandbox Code Playgroud)
我在 xml 中尝试过:
<Button text="Goto myPage" [nsRouterLink]="['/myPage']" pageTransition="flip"></Button>
Run Code Online (Sandbox Code Playgroud)
当我导航到“myPage”但没有动画时,这两种方法都有效。我是否需要更改设置才能“启用”动画,或者我是否遗漏了一些明显的东西?