We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 185b96f commit 4e57749Copy full SHA for 4e57749
nativescript-angular/router/page-router-outlet.ts
@@ -179,12 +179,12 @@ export class PageRouterOutlet extends RouterOutlet {
179
180
this.location.navigateToNewPage();
181
return new Promise((resolve, reject) => {
182
- page.on('navigatedTo', () => {
183
- // Finish activation when page is fully navigated to.
+ page.on('navigatingTo', () => {
+ // Finish activation when page navigation has started
184
resolve(componentRef)
185
});
186
187
- page.on('navigatingFrom', (<any>global).Zone.current.wrap((args: NavigatedData) => {
+ page.on('navigatedFrom', (<any>global).Zone.current.wrap((args: NavigatedData) => {
188
if (args.isBackNavigation) {
189
this.location.beginBackPageNavigation();
190
this.location.back();
0 commit comments