Hi @champion007 ,
Currently I face the problem in my Ionic app. Initially when I login my tab navigation works fine, But when I logout and logged in again, Now only my first tabs page loads but I can’t switch to other tab pages. Url changes perfectly but my views are not rendering.
After googling they asked me to check Imports of core.css in Global.css I have checked that too.
But no luck, please help me on this. It takes my whole day
Broad problems like stuck navigation are going to be tough for anybody to make constructive suggestions about without access to a complete runnable project. Can you make an MCVE publicly available on someplace like GitHub or Gitlab?
Hi @rapropos First of all thank you for your prompt response, I have fixed the issue while creating MCVE for your reference. The mistake what I done was, I had used
<ion-router-outlet></ion-router-outlet>
in my app.component.html page and
<router-outlet></router-outlet>
in my Landing page where I used login page as a child component.
So, when I logged in previously all worked fine when I logged out the router changes from
<ion-router-outlet>
to <router-outlet>
.
When I tried to login my router fails to redirect to the page in tabs.
As, I changed <router-outlet>
to <ion-router-outlet>
everything works as expected.
Thanks for making the effort to report back. I’m sure it will help somebody else in the future.