Files
psp_panel/src/app/app-routing.module.ts
T

30 lines
1.8 KiB
TypeScript
Raw Normal View History

2021-12-29 09:28:51 +03:00
import { RouterModule } from '@angular/router';
import { NgModule } from '@angular/core';
2022-07-22 13:13:50 +03:00
import { NotfoundComponent } from './demo/components/notfound/notfound.component';
import { AppLayoutComponent } from "./layout/app.layout.component";
2021-12-06 10:26:58 +03:00
@NgModule({
2021-12-09 17:24:42 +03:00
imports: [
RouterModule.forRoot([
{
2022-07-22 13:13:50 +03:00
path: '', component: AppLayoutComponent,
2021-12-09 17:24:42 +03:00
children: [
2022-07-22 13:13:50 +03:00
{ path: '', loadChildren: () => import('./demo/components/dashboard/dashboard.module').then(m => m.DashboardModule) },
{ path: 'uikit', loadChildren: () => import('./demo/components/uikit/uikit.module').then(m => m.UikitModule) },
{ path: 'utilities', loadChildren: () => import('./demo/components/utilities/utilities.module').then(m => m.UtilitiesModule) },
{ path: 'documentation', loadChildren: () => import('./demo/components/documentation/documentation.module').then(m => m.DocumentationModule) },
{ path: 'blocks', loadChildren: () => import('./demo/components/primeblocks/primeblocks.module').then(m => m.PrimeBlocksModule) },
{ path: 'pages', loadChildren: () => import('./demo/components/pages/pages.module').then(m => m.PagesModule) },
2022-01-06 17:39:11 +03:00
],
2021-12-09 17:24:42 +03:00
},
2022-07-22 13:13:50 +03:00
{ path: 'auth', loadChildren: () => import('./demo/components/auth/auth.module').then(m => m.AuthModule) },
{ path: 'landing', loadChildren: () => import('./demo/components/landing/landing.module').then(m => m.LandingModule) },
{ path: 'pages/notfound', component: NotfoundComponent },
{ path: '**', redirectTo: 'pages/notfound' },
], { scrollPositionRestoration: 'enabled', anchorScrolling: 'enabled' })
2021-12-09 17:24:42 +03:00
],
exports: [RouterModule]
2021-12-06 10:26:58 +03:00
})
2021-12-09 17:24:42 +03:00
export class AppRoutingModule {
}