Hi I how do I route all unmatched/unavailable url to home page? I’ve tried “*” but didn’t work.
{
path: '',
redirectTo: 'home',
pathMatch: 'full'
},
{
path: '*',
redirectTo: 'home'
},
{
path: 'home',
loadChildren: () => import('./home/home.module').then( m => m.HomePageModule)
},
{
path: 'user',
loadChildren: () => import('./tab/tab.module').then( m => m.TabPageModule),
canActivate: [AuthGuardService]
},
3 posts - 2 participants