I have my routes as follows:
{path: 'login', component: LoginComponent},
{path: 'platform', component: PlatformComponent,
children: [
...
...
and app.component.html with just the following content:
<router-outlet></router-outlet>
and then on app.component.ts the following code at the constructor {}:
this._router.navigateByUrl("/login");
After the user enters the email and password, if validated, Im doing
this.router.navigate(['../platform/maindashboard'], { relativeTo: this.activeRoute });
I also did
this.router.navigateByUrl("/platform/maindashboard");
but in both cases (even if Im being routed to the correct route) a blank page is displayed. I checked the HTML code on the page and its all there, but nothing is being rendered.
I've been dealing with this for hours already and I cannot find a solution to this.
Thanks so much.