mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-18 08:20:13 +01:00
59 lines
1.3 KiB
TypeScript
59 lines
1.3 KiB
TypeScript
|
|
import { NgModule } from '@angular/core';
|
||
|
|
import { Routes, RouterModule } from '@angular/router';
|
||
|
|
|
||
|
|
import { LayoutComponent } from './layout.component';
|
||
|
|
import { Tab1Component, Tab2Component, TabsComponent } from './tabs/tabs.component';
|
||
|
|
import { AccordionComponent } from './accordion/accordion.component';
|
||
|
|
import { InfiniteListComponent } from './infinite-list/infinite-list.component';
|
||
|
|
import { ListComponent } from './list/list.component';
|
||
|
|
import { StepperComponent } from './stepper/stepper.component';
|
||
|
|
|
||
|
|
const routes: Routes = [{
|
||
|
|
path: '',
|
||
|
|
component: LayoutComponent,
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
path: 'stepper',
|
||
|
|
component: StepperComponent,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
path: 'list',
|
||
|
|
component: ListComponent,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
path: 'infinite-list',
|
||
|
|
component: InfiniteListComponent,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
path: 'accordion',
|
||
|
|
component: AccordionComponent,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
path: 'tabs',
|
||
|
|
component: TabsComponent,
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
path: '',
|
||
|
|
redirectTo: 'tab1',
|
||
|
|
pathMatch: 'full',
|
||
|
|
},
|
||
|
|
{
|
||
|
|
path: 'tab1',
|
||
|
|
component: Tab1Component,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
path: 'tab2',
|
||
|
|
component: Tab2Component,
|
||
|
|
},
|
||
|
|
],
|
||
|
|
},
|
||
|
|
],
|
||
|
|
}];
|
||
|
|
|
||
|
|
@NgModule({
|
||
|
|
imports: [RouterModule.forChild(routes)],
|
||
|
|
exports: [RouterModule],
|
||
|
|
})
|
||
|
|
export class LayoutRoutingModule {
|
||
|
|
}
|