Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/simptel/simpledocs into f…
Browse files Browse the repository at this point in the history
…eat/replaced-tailwind
  • Loading branch information
khushi-1305 committed Oct 9, 2023
2 parents c139de4 + 8e6c9e5 commit b6de881
Showing 1 changed file with 25 additions and 15 deletions.
40 changes: 25 additions & 15 deletions demo/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
@@ -1,45 +1,55 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

export enum AppRoutes {
GetStarted = 'get-started',
CheatSheet = 'cheat-sheet',
SyntaxHighlight = 'syntax-highlight',
Bindings = 'bindings',
Plugins = 'plugins',
ReRender = 're-render',
}

const routes: Routes = [
{
path: 'cheat-sheet',
path: AppRoutes.GetStarted,
loadChildren: () => import('./get-started/get-started.module').then(m => m.GetStartedModule),
data: { label: 'Get Started' },
},
{
path: AppRoutes.CheatSheet,
loadChildren: () => import('./cheat-sheet/cheat-sheet.module').then(m => m.CheatSheetModule),
data: { label: 'Cheat Sheet' },
},
{
path: '/syntax-highlight',
path: AppRoutes.SyntaxHighlight,
loadChildren: () => import('./syntax-highlight/syntax-highlight.module').then(m => m.SyntaxHighlightModule),
data: { label: 'Syntax Highlight' },
},
{
path: '/bindings',
path: AppRoutes.Bindings,
loadChildren: () => import('./bindings/bindings.module').then(m => m.BindingsModule),
data: { label: 'Bindings' },
},
{
path: '/plugins',
path: AppRoutes.Plugins,
loadChildren: () => import('./plugins/plugins.module').then(m => m.PluginsModule),
data: { label: 'Plugins' },
},
{
path: '/re-render',
path: AppRoutes.ReRender,
loadChildren: () => import('./rerender/rerender.module').then(m => m.RerenderModule),
data: { label: 'Re-render' },
},
{
path: '/get-started',
loadChildren: () => import('./get-started/get-started.module').then(m => m.GetStartedModule),
data: { label: 'Get Started' },
},
{
{
path: '',
pathMatch: 'full',
redirectTo: '/get-started',
redirectTo: AppRoutes.GetStarted,
},
{
path: '**',
redirectTo: AppRoutes.GetStarted,
},
{ path: '**',
loadChildren: () => import('./get-started/get-started.module').then(m => m.GetStartedModule),
}
];

@NgModule({
Expand Down

0 comments on commit b6de881

Please sign in to comment.