You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wrong styling applied with lazy loaded component on named outlet #15961
Ionic Info
Run ionic info from a terminal/cmd prompt and paste the output below.
Ionic:
ionic (Ionic CLI) : 4.2.1 (C:\Users\alex9\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.0.0-beta.13
@angular-devkit/build-angular : 0.8.5
@angular-devkit/schematics : 0.8.5
@angular/cli : 6.2.5
@ionic/angular-toolkit : 1.0.0
Cordova:
cordova (Cordova CLI) : 8.1.2 ([email protected])
Cordova Platforms : not available
Cordova Plugins : not available
System:
NodeJS : v8.11.4 (C:\Users\alex9\Programs\nodejs\node.exe)
npm : 6.4.1
OS : Windows 10
Describe the Bug
A clear and concise description of what the bug is.
Steps to Reproduce
See repository first
Steps to reproduce the behavior:
Create a new ionic 4 project with blank template.
In app.component.html create a named ion-route-outlet under the default one.
In app-routing.module.ts create a route corresponding to the named outlet and lazily loading the home module
In the browser, if you navigate to the route with the named outlet and lazy loaded, you will notice the home component is rendered oddly. If you inspect the code you can see that the app-home element doesn't have the ion-page class set.
Expected Behavior
The app-home element should have the 'ion-page' class set. I suspect that all the styling the 'ng-component' element has should actually be on the page component.
Additional Context
List any other information that is relevant to your issue. Stack traces, related issues, suggestions on how to fix, Stack Overflow links, forum links, screenshots, OS if applicable, etc.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Activity
late-warrior commentedon Nov 17, 2018
Another reproducer here - https://github.com/late-warrior/ionic4-tabs-lazy-load-reproducer if it may help triage quickly. Pasting a gif as well to quickly demo the issue -
paulstelzer commentedon Dec 7, 2018
Thanks for the issue! I close this here because the team collects the issues under #16619
ionitron-bot commentedon Jan 6, 2019
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.