我知道通过a标签跳转时,加上nav-direction="back"可以有切换动画,现在我是在controller里通过$window.location.href = '#/block'这样来做切换的,这种情况下,怎么做切换动画?
nav-direction="back"
$window.location.href = '#/block'
小伙看你根骨奇佳,潜力无限,来学PHP伐。
Solution: Use $state.go进行跳转,记得在controller里注入'$state', then refer to this link to use animation
$state.go
'$state'
Remember to jump to the page, you can use $state.go
Solution:
Use
$state.go
进行跳转,记得在controller里注入'$state'
, then refer to this link to use animationRemember to jump to the page, you can use $state.go