mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
alert wip
This commit is contained in:
@ -17,8 +17,7 @@ import {NavParams} from './nav-controller';
|
||||
*/
|
||||
export class ViewController {
|
||||
|
||||
constructor(navCtrl, componentType, data={}) {
|
||||
this.setNav(navCtrl);
|
||||
constructor(componentType, data={}) {
|
||||
this.componentType = componentType;
|
||||
this.data = data;
|
||||
this.instance = {};
|
||||
@ -27,14 +26,16 @@ export class ViewController {
|
||||
this._loaded = false;
|
||||
this.shouldDestroy = false;
|
||||
this.shouldCache = false;
|
||||
this.enterAnimationKey = 'pageTransition';
|
||||
this.leaveAnimationKey = 'pageTransition';
|
||||
}
|
||||
|
||||
setNav(navCtrl) {
|
||||
this._nav = navCtrl;
|
||||
}
|
||||
|
||||
getTransitionName(direction) {
|
||||
return this._nav && this._nav.config.get('pageTransition');
|
||||
}
|
||||
|
||||
getNavParams() {
|
||||
return new NavParams(this.data);
|
||||
}
|
||||
|
Reference in New Issue
Block a user