Master-detail splitpane with ionic 4/5

I try to set up a master-detail view with split panes, in which both sides can be exchanged during navigation. I found this working for ionic-3 but struggle at porting this to ionic 4.

    <ion-nav [root]="masterPage" 
    <ion-nav [root]="detailPage" 
             #detailNav main> 

This is used for ionic-3 to set up 2 nav objects. How would this look for ionic 4/5 with angular routing now?

I found this which sets up only the details page as navigatable page, while the menu is static. Looks like all examples are like this only. Is there some way?