workaround for now:
export function getRouterOutlet() {
return document.getElementById('ion-router-outlet-content');
}
so your needs the id="ion-router-outlet-content"
.
Then instead of calling this.routerOutlet.nativeElement
, call the function from above