fix(transition): ios-transition can be used in MD/WP

fixes #7171
This commit is contained in:
Manu Mtz.-Almeida
2016-10-10 15:47:40 +02:00
committed by Adam Bradley
parent 93616c4676
commit fcc515f5d7
3 changed files with 23 additions and 7 deletions

View File

@@ -122,7 +122,10 @@ export class FirstPage {
}
pushPrimaryHeaderPage() {
this.navCtrl.push(PrimaryHeaderPage).then(() => {}, (rejectReason: string) => {
this.navCtrl.push(PrimaryHeaderPage, null, {
animate: true,
animation: 'ios-transition'
}).then(() => { }, (rejectReason: string) => {
});
}
@@ -132,12 +135,18 @@ export class FirstPage {
}
pushFullPage() {
this.navCtrl.push(FullPage, { id: 8675309, myData: [1, 2, 3, 4] }).catch(() => {
this.navCtrl.push(FullPage, { id: 8675309, myData: [1, 2, 3, 4] }, {
animate: true,
animation: 'md-transition'
}).catch(() => {
});
}
pushAnother() {
this.navCtrl.push(AnotherPage).catch(() => {
this.navCtrl.push(AnotherPage, null, {
animate: true,
animation: 'wp-transition'
}).catch(() => {
});
}