From f6f16340e249d7b19f377db94beecfc25ea48aa5 Mon Sep 17 00:00:00 2001 From: Dan Bucholtz Date: Fri, 27 May 2016 14:19:15 -0500 Subject: [PATCH] refactor(nav-controller): add data property to the leaving opts so it's accessible to transition w add data property to the leaving opts so it's accessible to transition when exiting --- src/components/nav/nav-controller.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/nav/nav-controller.ts b/src/components/nav/nav-controller.ts index 34d3583866..629d13e650 100644 --- a/src/components/nav/nav-controller.ts +++ b/src/components/nav/nav-controller.ts @@ -505,7 +505,8 @@ export class NavController extends Ion { enteringView.setLeavingOpts({ keyboardClose: false, direction: 'back', - animation: enteringView.getTransitionName('back') + animation: enteringView.getTransitionName('back'), + ev: opts.ev }); // start the transition @@ -1429,14 +1430,14 @@ export class NavController extends Ion { // load the page component inside the nav this._loader.loadNextToLocation(view.componentType, this._viewport, providers).then(component => { - + // a new ComponentRef has been created // set the ComponentRef's instance to its ViewController view.setInstance(component.instance); - + // the component has been loaded, so call the view controller's loaded method to load any dependencies into the dom view.loaded( () => { - + // the ElementRef of the actual ion-page created let pageElementRef = component.location;