404 wildcard for subpaths

This commit is contained in:
Cagatay Civici
2022-10-27 21:27:36 +03:00
parent 73c7e63414
commit 1f7ef417fc
6 changed files with 11 additions and 7 deletions

View File

@@ -4,7 +4,8 @@ import { IconsComponent } from './icons/icons.component';
@NgModule({
imports: [RouterModule.forChild([
{ path: 'icons', data: { breadcrumb: 'Prime Icons' }, component: IconsComponent }
{ path: 'icons', data: { breadcrumb: 'Prime Icons' }, component: IconsComponent },
{ path: '**', redirectTo: '/notfound' }
])],
exports: [RouterModule]
})