I am using Angular CLI to build app. I have configured routes as shown below:
const routes: Routes = [
{path: 'Home', component: HomeComponent},
{path: 'About', component: AboutUsComponent},
{ path: '**', pathMatch: 'full', redirectTo: 'Home' }
];
I have a requirement that on refresh of the page I need to redirect to Home path.
Note: I have tried doing it with guards but failed to achieve desired result. Please help me out with the steps.
Thanks in advance