alert wip

This commit is contained in:
Adam Bradley
2015-12-23 23:11:40 -06:00
parent 819d1a2b05
commit c136d2143a
29 changed files with 376 additions and 1013 deletions

View File

@ -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);
}