diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index 0464625..be3cd19 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -4,18 +4,17 @@ import {AppLayoutComponent} from './layout/app.layout.component'; export const routes: Routes = [ { path: '', component: AppLayoutComponent, - // children: - // [ - // { 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) } - // ] + children: + [ + // { 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) } + + ] }, - // { 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: 'notfound', component: NotfoundComponent }, + { path: 'auth', loadChildren: () => import('./demo/components/auth/routes')}, { path: '**', redirectTo: '/notfound' }, ]; diff --git a/src/app/demo/components/auth/access.ts b/src/app/demo/components/auth/access.ts new file mode 100644 index 0000000..ba32339 --- /dev/null +++ b/src/app/demo/components/auth/access.ts @@ -0,0 +1,34 @@ +import { Component } from '@angular/core'; +import {ButtonModule} from 'primeng/button'; +import {RouterModule} from '@angular/router'; +import {RippleModule} from 'primeng/ripple'; + +@Component({ + selector: 'app-access', + standalone: true, + imports: [ + ButtonModule, + RouterModule, + RippleModule + ], + template: ` +