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

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

伊谢尔伦
伊谢尔伦

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

Antworte allen(2)
Peter_Zhu

解决方案:
使用$state.go进行跳转,记得在controller里注入'$state',然后参考这个链接使用动画

Ty80

记得跳页面,可以用 $state.go

Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!