Skip to content

Commit a146e7b

Browse files
sis0k0hdeshev
authored andcommitted
fix(page-router-outlet): load component in page before running
detectChanges
1 parent 8b48625 commit a146e7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: nativescript-angular/router/page-router-outlet.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ export class PageRouterOutlet { // tslint:disable-line:directive-class-suffix
200200
loaderRef.changeDetectorRef.detectChanges();
201201

202202
this.currentActivatedComp = loaderRef.instance.loadWithFactory(factory);
203-
this.currentActivatedComp.changeDetectorRef.detectChanges();
204-
205203
this.loadComponentInPage(page, this.currentActivatedComp);
204+
205+
this.currentActivatedComp.changeDetectorRef.detectChanges();
206206
this.refCache.push(this.currentActivatedComp, pageRoute, outletMap, loaderRef);
207207
}
208208
}

0 commit comments

Comments
 (0)