File tree 1 file changed +3
-2
lines changed
nativescript-angular/router
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -348,13 +348,13 @@ export class PageRouterOutlet implements OnDestroy { // tslint:disable-line:dire
348
348
this . changeDetector . markForCheck ( ) ;
349
349
350
350
this . activated = loaderRef . instance . loadWithFactory ( factory ) ;
351
- this . loadComponentInPage ( page , this . activated ) ;
351
+ this . loadComponentInPage ( page , this . activated , { activatedRoute } ) ;
352
352
353
353
this . activated [ loaderRefSymbol ] = loaderRef ;
354
354
}
355
355
356
356
@profile
357
- private loadComponentInPage ( page : Page , componentRef : ComponentRef < any > ) : void {
357
+ private loadComponentInPage ( page : Page , componentRef : ComponentRef < any > , navigationContext ) : void {
358
358
// Component loaded. Find its root native view.
359
359
const componentView = componentRef . location . nativeElement ;
360
360
// Remove it from original native parent.
@@ -393,6 +393,7 @@ export class PageRouterOutlet implements OnDestroy { // tslint:disable-line:dire
393
393
create ( ) {
394
394
return page ;
395
395
} ,
396
+ context : navigationContext ,
396
397
clearHistory : navOptions . clearHistory ,
397
398
animated : navOptions . animated ,
398
399
transition : navOptions . transition
You can’t perform that action at this time.
0 commit comments