ngx-admin/src/app/pages/components/components-routing.module.ts
2017-07-24 12:05:09 +03:00

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,
];