Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
818 B
12
Indexable
Never
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'
            }
        ]
    }
];
Leave a Comment