mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-02-19 14:38:07 +01:00
32 lines
756 B
TypeScript
32 lines
756 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
import { ComponentsComponent } from './components.component';
|
|
import { TreeComponent } from './tree/tree.component';
|
|
import { NotificationsComponent } from './notifications/notifications.component';
|
|
|
|
const routes: Routes = [{
|
|
path: '',
|
|
component: ComponentsComponent,
|
|
children: [
|
|
{
|
|
path: 'tree',
|
|
component: TreeComponent,
|
|
}, {
|
|
path: 'notifications',
|
|
component: NotificationsComponent,
|
|
},
|
|
],
|
|
}];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule],
|
|
})
|
|
export class ComponentsRoutingModule { }
|
|
|
|
export const routedComponents = [
|
|
ComponentsComponent,
|
|
TreeComponent,
|
|
NotificationsComponent,
|
|
];
|