如何禁用意见离子导航视图之间/更改动画 [英] How to disable/change animation between views in ion-nav-view
问题描述
我开始离子标签项目。通过这个项目来视图之间默认的动画(进入时,这是由左到右,然后从右边回去的时候到左)。我想保留这个控制 - 通过指定两个类型视图动画:
- 没有动画
从下到上
到目前为止,我试图禁用动画如下,因为有人建议在此的离子论坛但它并没有改变什么:
<离子导航视图动画=无动画>< /离子NAV-视图>
这是怎么回事?
angular.module('YOUR_APP_NAME_HERE')。配置(函数($ ionicConfigProvider){
$ ionicConfigProvider.views.transition('无');
});
<一个href=\"http://ionicframework.com/docs/api/provider/$ionicConfigProvider#views.transition\">http://ionicframework.com/docs/api/provider/$ionicConfigProvider#views.transition
I started an Ionic tabs project. With this project comes the default animation between views (which is from left to right when entering, and from right to left when going back). I would like to retain control on this - by specifying two type of view animations:
- from bottom to up
- no animation
So far I tried to disable the animation as follows, as was suggested on this Ionic Forum Topic but it did not change anything:
<ion-nav-view animation="no-animation"></ion-nav-view>
What is going on?
angular.module('YOUR_APP_NAME_HERE').config(function($ionicConfigProvider) {
$ionicConfigProvider.views.transition('none');
});
http://ionicframework.com/docs/api/provider/$ionicConfigProvider#views.transition
这篇关于如何禁用意见离子导航视图之间/更改动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!