Untitled

 avatar
unknown
plain_text
a year ago
818 B
15
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