Untitled
unknown
plain_text
2 years ago
818 B
18
Indexable
const routes: Routes = [
{
path: '',
redirectTo: '/search',
pathMatch: 'full'
},
{
path: 'login',
component: LoginComponent
},
{
path: '',
component: LayoutComponent,
canActivate: [AuthGuard],
children: [
{
path: 'search',
loadChildren: () => import('../pages/search/search.module').then(m => m.SearchModule)
},
{
path: 'static',
loadChildren: () => import('../pages/static/static-page.module').then(m => m.StaticPageModule)
},
{
path: '**',
redirectTo: 'static/not-found',
pathMatch: 'full'
}
]
}
];Editor is loading...
Leave a Comment