I am facing an issue that is not reloading the same component. After doing google I found that I need to add onsameurlnavigation 'reload' in app-routing-module.ts file, But that is also not working
below is my app-routing-module.ts code
const routes: Routes = [
{ path: 'student', component: StudentDetailsComponent }
];
@NgModule({
imports: [RouterModule.forRoot(routes,{onSameUrlNavigation: 'reload'})],
exports: [RouterModule]
})
export class AppRoutingModule { }
Below is my router link
<a [routerLink]="['/student']">
Student
</a>
Please help me to resolve this same page loading issue