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
This commit is contained in:
Dan Bucholtz
2016-05-27 14:19:15 -05:00
parent 4b4092b25e
commit f6f16340e2

View File

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