If the user enters a link that does not exist, I want the page to be redirected to the main page.
How can i do this? Thanks
@RouteConfig([
{path: '/home', name: 'Home', component: HomeComponent},
{path: '/about', name: 'About', component: AboutComponent},
{path: '/???', name: 'not-found', redirectTo: ['Home']}
])
source
share