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 @@ -423,9 +423,7 @@ export class PageRouterOutlet implements OnDestroy { // tslint:disable-line:dire
423
423
if ( modalNavigation > 0 ) { // Modal with 'primary' p-r-o
424
424
outlet = this . locationStrategy . findOutletByModal ( modalNavigation ) ;
425
425
} else {
426
- const pathByOutlets = this . locationStrategy . getPathByOutlets ( topActivatedRoute ) ;
427
426
outlet = this . locationStrategy . findOutletByKey ( outletKey ) ;
428
- outlet = outlet || this . locationStrategy . findOutletByOutletPath ( pathByOutlets ) ;
429
427
}
430
428
431
429
// Named lazy loaded outlet.
@@ -436,6 +434,9 @@ export class PageRouterOutlet implements OnDestroy { // tslint:disable-line:dire
436
434
if ( outlet ) {
437
435
outlet . outletKeys . push ( outletKey ) ;
438
436
}
437
+ } else if ( ! outlet ) {
438
+ const pathByOutlets = this . locationStrategy . getPathByOutlets ( topActivatedRoute ) ;
439
+ outlet = this . locationStrategy . findOutletByOutletPath ( pathByOutlets ) ;
439
440
}
440
441
441
442
return outlet ;
You can’t perform that action at this time.
0 commit comments