//都是在原有基础上添加下面
import {ViewController} from ‘ionic-angular‘;
constructor(private viewCtrl: ViewController) {
this.patchViewControllerContent(this.viewCtrl);
}
patchViewControllerContent(viewCtrl: ViewController) {
const _setIONContent = viewCtrl._setIONContent;
viewCtrl._setIONContent = (...args) => {
if (!viewCtrl.getIONContent()) {
_setIONContent.apply(viewCtrl, args);
}
};
const _setIONContentRef = viewCtrl._setIONContentRef;
viewCtrl._setIONContentRef = (...args) => {
if (!viewCtrl.getIONContentRef()) {
_setIONContentRef.apply(viewCtrl, args);
}
};
}
ionic3解决多个ion-content push pop动画效果问题(含有侧边栏)
原文:https://www.cnblogs.com/wei-dong/p/ionic3.html