angular.js - How to add switching animation when switching templates through $window.location.href in ionic?
伊谢尔伦
伊谢尔伦 2017-05-15 17:03:52
0
2
716

I know that when jumping through the a tag, adding nav-direction="back" can have a switching animation. Now I use $window.location.href = '#/block' to do the switching in the controller. In this case, how to do the switching animation?

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学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