File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
nativescript-angular/router Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -179,12 +179,12 @@ export class PageRouterOutlet extends RouterOutlet {
179
179
180
180
this . location . navigateToNewPage ( ) ;
181
181
return new Promise ( ( resolve , reject ) => {
182
- page . on ( 'navigatedTo ' , ( ) => {
183
- // Finish activation when page is fully navigated to.
182
+ page . on ( 'navigatingTo ' , ( ) => {
183
+ // Finish activation when page navigation has started
184
184
resolve ( componentRef )
185
185
} ) ;
186
186
187
- page . on ( 'navigatingFrom ' , ( < any > global ) . Zone . current . wrap ( ( args : NavigatedData ) => {
187
+ page . on ( 'navigatedFrom ' , ( < any > global ) . Zone . current . wrap ( ( args : NavigatedData ) => {
188
188
if ( args . isBackNavigation ) {
189
189
this . location . beginBackPageNavigation ( ) ;
190
190
this . location . back ( ) ;
You can’t perform that action at this time.
0 commit comments