md transition

This commit is contained in:
Adam Bradley
2015-07-20 14:26:23 -05:00
parent 6f266549e1
commit 7ed53a4e7f
6 changed files with 40 additions and 60 deletions

View File

@ -8,13 +8,9 @@ import {Platform} from '../../platform/platform';
/*
home: {
ios: 'ion-ios-home',
'home': {
ios: ['ion-ios-home', 'ion-ios-home-outline'],
md: 'ion-md-home'
},
star: {
ios: 'ion-ios-star',
md: 'ion-md-star',
}
1-for-1 swap

View File

@ -81,6 +81,6 @@ export class FirstPage {
// }
push() {
this.nav.push(SecondPage, { id: 8675309, myData: [1,2,3,4] }, { animation: 'ios' });
this.nav.push(SecondPage, { id: 8675309, myData: [1,2,3,4] } );
}
}

View File

@ -21,7 +21,8 @@ export class ViewController extends Ion {
injector: Injector,
elementRef: ElementRef
) {
super(elementRef, injector.get(IonicConfig));
let config = injector.get(IonicConfig);
super(elementRef, config);
this.parent = parentViewCtrl;
@ -30,6 +31,7 @@ export class ViewController extends Ion {
this.viewMngr = injector.get(AppViewManager);
this.router = injector.get(IonicRouter);
this.app = injector.get(IonicApp);
this.config = config;
this.router.addViewController(this);
@ -203,6 +205,9 @@ export class ViewController extends Ion {
if (opts.animate === false) {
opts.animation = 'none';
} else if (!opts.animation) {
opts.animation = this.config.setting('viewTransition');
}
opts.animate = (opts.animation !== 'none');