angular.js - ionic中通过$window.location.href切换模板的时候,怎么加切换动画?
伊谢尔伦
伊谢尔伦 2017-05-15 17:03:52
0
2
616

我知道通过a标签跳转时,加上nav-direction="back"可以有切换动画,现在我是在controller里通过$window.location.href = '#/block'这样来做切换的,这种情况下,怎么做切换动画?

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all (2)
Peter_Zhu

Solution:
Use$state.go进行跳转,记得在controller里注入'$state', then refer to this link to use animation

    Ty80

    Remember to jump to the page, you can use $state.go

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!