First of all. I have checked all similar questions and its accepted answers in stackoverflow but did not work any. I am using Angular 8.1.3
So the problem is when I click on routerLink it just appends my component on existing component but it should not append it should replace whole screen with the new component. I tried by removing BrowserAnimationsModule
but did not help.
I have create one small app in stackblitz, please have a look https://stackblitz.com/edit/angular-a8lmjs. Here I am able to reproduce the problem.