mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-19 00:40:12 +01:00
feat(pages): implement starter page with themes
This commit is contained in:
parent
00f0e4a2ba
commit
fb6e04b80a
16 changed files with 343 additions and 184 deletions
|
|
@ -8,11 +8,12 @@ import {
|
|||
NbRequestPasswordComponent,
|
||||
NbResetPasswordComponent,
|
||||
} from '@nebular/auth';
|
||||
import {StarterScreenComponent} from './themes-screen/starter-screen.component';
|
||||
import { ThemeGuard } from './@core/guard/theme.guard';
|
||||
|
||||
export const routes: Routes = [
|
||||
{
|
||||
path: 'pages',
|
||||
canActivate: [ThemeGuard],
|
||||
loadChildren: () => import('./pages/pages.module')
|
||||
.then(m => m.PagesModule),
|
||||
},
|
||||
|
|
@ -24,6 +25,7 @@ export const routes: Routes = [
|
|||
{
|
||||
path: 'auth',
|
||||
component: NbAuthComponent,
|
||||
canActivate: [ThemeGuard],
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
|
|
@ -51,8 +53,8 @@ export const routes: Routes = [
|
|||
},
|
||||
],
|
||||
},
|
||||
{ path: '', redirectTo: 'pages', pathMatch: 'full' },
|
||||
{ path: '**', redirectTo: 'pages' },
|
||||
{ path: '', redirectTo: 'themes', pathMatch: 'full' },
|
||||
{ path: '**', redirectTo: 'themes' },
|
||||
];
|
||||
|
||||
const config: ExtraOptions = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue