typescript – Angular’s .navigateByUrl() navigates to the page but html is not rendered

I have a problem while navigating to home page after login. I have navbar <app-header></app-header> with two links, one to signup and another to login. After login i want to navigate to home page under http://localhost:4200 link. In login.component.ts i redirecting with navigateByUrl() and navigation works fine but my home page is not rendered, there … Read more