mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
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:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user