Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48979

Ion-router-outlets on the same page

$
0
0

Hi,

Depending on the path, I need to render inside a slide or not. The route can have child routes too. I am having problems using 2 ion-router-outlet on the same page… wonder if there is a better solution.

Error: ERROR Error: Uncaught (in promise): TypeError: Cannot read properties of undefined (reading 'appendChild')

    <app-bottom-drawer [ngClass]="{'ion-hide': !isSlideContent}">
             <ion-router-outlet *ngIf="isSlideContent"></ion-router-outlet>
    </app-bottom-drawer>

    <ion-router-outlet *ngIf="!isSlideContent"></ion-router-outlet>
    <app-footer></app-footer>

Ionic CLI : 6.17.1
Ionic Framework : @ionic/angular 5.8.1
@angular-devkit/build-angular : 12.1.4
@angular-devkit/schematics : 12.2.7
@angular/cli : 12.2.7
@ionic/angular-toolkit : 4.0.0

Thank you.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>